Ripple

An animated ripple effect typically used behind elements to emphasize them.

Examples

Only lines

Squared

Blobed

API

Prop NameTypeDefaultDescription
baseCircleSizenumber210The size of the main circle in pixels.
baseCircleOpacitynumber0.24The opacity of the main circle.
spaceBetweenCirclenumber70The space between each ripple circle in pixels.
circleOpacityDowngradeRationumber0.03The rate at which opacity decreases for each successive ripple circle.
circleClassstringundefinedCSS class name(s) for additional styling of circles.
waveSpeednumber80The animation speed for the wave effect, measured in ms.
numberOfCirclesnumber7The number of ripple circles to render.

Component Code

You can copy and paste the following code to create this component:

Ripple.vue
RippleCircle.vue
RippleContainer.vue

Credits