Ripple

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

Ripple

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/ripple.json

Usage

<script lang="ts">	import { Ripple } from "#lib/components/magic/ripple/index.js";</script>
<div class="relative h-64 overflow-hidden">	<Ripple /></div>

Props

Ripple

A component for Ripple.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply
mainCircleSizenumber210The size of the main circle
mainCircleOpacitynumber0.24The opacity of the main circle
numCirclesnumber8The number of ripple circles