Ripple
ProNewConcentric rings that breathe outward from the center, each a beat behind the last.
Installation
pnpm dlx shadcn@latest add @viewport/ripple
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| rings | numberNumber of rings. | 7 |
| size | numberDiameter of the innermost ring in pixels. | 140 |
| gap | numberPixels added to the diameter of each following ring. | 90 |
| duration | numberSeconds for one pulse. | 3.6 |
| className | string | — |
Accessibility
- Decorative and aria-hidden.
- Still under reduced motion.
- Server component with no client JavaScript.