Tilt Card Image Demo
sora-ui/demo-tilt-card-imageFreeComponent
Image card with a subtle reversed tilt.
Install it
npx shadcn@latest add https://ui.soralabs.io.vn/r/demo-tilt-card-image.jsonSource
1"use client";23import Image from "next/image";4import { TiltCard } from "@/components/sora-ui/effects/tilt-card";56export interface TiltCardImageDemoProps {7 isReverse?: boolean;8 rotationFactor?: number;9}1011/** motion-primitives `tilt-card-1` */12export function TiltCardImageDemo({13 isReverse = true,14 rotationFactor = 8,15}: TiltCardImageDemoProps) {16 return (17 <TiltCard isReverse={isReverse} rotationFactor={rotationFactor}>18 <div className="flex w-67.5 flex-col overflow-hidden rounded-xl border border-zinc-950/10 bg-white dark:border-zinc-50/10 dark:bg-zinc-900">19 <div className="relative h-48 w-full">20 <Image21 alt="Shibuya crossing at night, Tokyo"22 className="object-cover"23 fill24 sizes="270px"25 src="https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?w=540&h=384&fit=crop"26 />27 </div>28 <div className="p-2">29 <h1 className="font-mono text-zinc-950 leading-snug dark:text-zinc-50">30 Tokyo31 </h1>32 <p className="text-zinc-700 dark:text-zinc-400">Shibuya at night</p>33 </div>34 </div>35 </TiltCard>36 );37}3839export default TiltCardImageDemo;
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 |
