Tilt Card Demo
sora-ui/demo-tilt-cardFreeComponent
Card tilting toward the cursor with layered depth content.
Install it
npx shadcn@latest add https://ui.soralabs.io.vn/r/demo-tilt-card.jsonSource
1"use client";23import { TiltCard } from "@/components/sora-ui/effects/tilt-card";45export interface TiltCardDemoProps {6 isReverse?: boolean;7 perspective?: number;8 rotationFactor?: number;9 scaleOnHover?: number;10}1112export function TiltCardDemo({13 isReverse = false,14 perspective = 1000,15 rotationFactor = 8,16 scaleOnHover = 1,17}: TiltCardDemoProps) {18 return (19 <TiltCard20 className="w-[280px] rounded-xl border border-zinc-200 bg-zinc-50 p-6 dark:border-zinc-800 dark:bg-zinc-900"21 isReverse={isReverse}22 perspective={perspective}23 rotationFactor={rotationFactor}24 scaleOnHover={scaleOnHover}25 >26 <div27 className="flex flex-col gap-3"28 style={{ transform: "translateZ(40px)" }}29 >30 <div className="h-10 w-10 rounded-full bg-gradient-to-br from-violet-500 to-fuchsia-500" />31 <p className="font-medium text-sm text-zinc-900 dark:text-zinc-50">32 Sora UI33 </p>34 <p className="text-sm text-zinc-500 dark:text-zinc-400">35 Move your cursor around — the card tilts toward it on a spring, and36 this content floats above the surface.37 </p>38 </div>39 </TiltCard>40 );41}4243export default TiltCardDemo;
What it pulls in
Other registry items
Files it writes
More from Sora UI
All 97 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | Sora UI | Components | Free | 2 deps | |
| Border Trailborder-trail | Sora UI | Components | Free | 1 dep | |
| Bottom Sheetbottom-sheet | Sora UI | Components | Free | 2 deps | |
| Cursor Bubblecursor-bubble | Sora UI | Components | Free | 2 deps | |
| Cursor Trail Revealcursor-trail-reveal | Sora UI | Components | Free | 1 dep | |
| Custom Cursorcustom-cursor | Sora UI | Components | Free | 2 deps | |
| Accordion Demodemo-accordion | Sora UI | Components | Free | no deps | |
| Border Trail Demodemo-border-trail | Sora UI | Components | Free | no deps |
