Loading preview
Animated Card
CardsA card that tilts in 3D toward the pointer with spring physics.
A snow globe around any photo: snow drifts gently, and a shake sends a flurry.
npx shadcn@latest add @venusui/snow-globeRun 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/snow-globe.tsxThe code behind the preview above.
snow-globe-demo.tsx
import { SnowGlobe } from "@/components/ui/snow-globe"
// Photos: Unsplash (free under the Unsplash License).
const photo = (id: string, w: number, h: number) => `https://images.unsplash.com/photo-${id}?w=${w}&h=${h}&fit=crop&auto=format&q=80`
export default function SnowGlobeDemo() {
return <SnowGlobe src={photo("1464822759023-fed622ff2c3b", 600, 600)} alt="A valley below snowy mountains" label="Alpine 2026" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| src, alt | string | — | The scene inside. |
| label | string | "Greetings" | Engraved on the base. |
| flakes | number | 40 | Flakes when still. |
All <div> props.
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 light that travels around the border of a card or container.
Stacked cards with the next ones peeking out; Next sends the top card to the back.