Browse components
Mirror Ripple
A slowly folding mirror-like chrome surface that ripples wherever the cursor moves or clicks. WebGL.
Mirror Ripple
Installation
npx shadcn@latest add @glint-ui/mirror-rippleFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/mirror-ripple.json
Usage
import { MirrorRipple } from "@/components/ui/mirror-ripple";
<div className="relative h-96">
<MirrorRipple color="#d4dcec" />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#d4dcec" | Metal tint. |
| speed | number | 1 | Animation speed multiplier. |
| scale | number | 3 | Wave frequency. |
| amplitude | number | 0.6 | Height of the flowing folds. |
| interactive | boolean | true | Cursor and click ripples. |
| className | string | — | Extra classes for the root element. |