Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Ripple

ProNew

Concentric 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

PropTypeDefault
ringsnumber

Number of rings.

7
sizenumber

Diameter of the innermost ring in pixels.

140
gapnumber

Pixels added to the diameter of each following ring.

90
durationnumber

Seconds for one pulse.

3.6
classNamestring—

Accessibility

  • Decorative and aria-hidden.
  • Still under reduced motion.
  • Server component with no client JavaScript.