Ripple
MotionRipple is a React background of concentric rings that pulse outward from the center or any point, staggered and fading, with an extra ripple sent from each click or tap.
src/registry/premium/ripple.tsx/r/ripple.json
Installation#
bash
npx shadcn@latest add https://ui.minidev.pro/r/ripple.json
Usage#
tsx
import { Ripple } from "@/components/ui/ripple"
export function Example() {
return <Ripple />
}
API reference#
| Prop | Type | Default |
|---|---|---|
count | number | 7 |
spacing | number | 44 |
size | number | 128 |
origin | { x: number; y: number } | { x: 50, y: 50 } |
duration | number | 4 |
interactive | boolean | true |
className | string | - |
children | React.ReactNode | - |
Dependencies#
npm
lucide-reactmotion
Built from
Related motion components#
Animated Feature RowA row of feature cards that slide up with a staggered delay when scrolled into view. Pass title and description pairs; reduced motion keeps them still.Card TiltA card that tilts in 3D toward the pointer on springs, with an accent glare that follows the cursor. It stays flat when reduced motion is preferred.Cursor Spotlight PanelA panel whose accent radial spotlight follows the cursor, driven by Framer Motion values without re-renders. It shows a still surface for reduced motion.Device Frame StackThree device frames labelled mobile, app and docs that spring into a fanned, rotated stack when scrolled into view. Works as a hero or feature visual.Flip Stat BoardA stat board where each number counts up with digits that flip in on a spring once in view. Pass values and labels; reduced motion shows the final value.Grid RevealA grid of labelled tiles that slide up in quick succession as the section scrolls into view. Pass any list of strings; it honors reduced motion.
All Animated React components