Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A sheet of bubble wrap to pop one by one, or a whole row with a drag.
npx shadcn@latest add @venusui/bubble-wrapRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/bubble-wrap.tsxThe code behind the preview above.
bubble-wrap-demo.tsx
import { BubbleWrap } from "@/components/ui/bubble-wrap"
export default function BubbleWrapDemo() {
return <BubbleWrap />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| rows, columns | number | 5, 8 | Sheet size. |
| onPop | (popped: number, total: number) => void | — | Called on each pop. |
All <div> props.
lucide-react for icons. React 19 and Tailwind CSS v4.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A card that tilts in 3D toward the pointer with spring physics.
A lens with a working iris: blades close to the chosen aperture and snap shut when you release the shutter.
Stacked cards with the next ones peeking out; Next sends the top card to the back.