Tilt Card Glare Demo
sora-ui/demo-tilt-card-glareFreeComponent
Tilt card with a moving light reflection following the tilt angle.
Install it
npx shadcn@latest add https://ui.soralabs.io.vn/r/demo-tilt-card-glare.jsonSource
1"use client";23import { TiltCard } from "@/components/sora-ui/effects/tilt-card";45export interface TiltCardGlareDemoProps {6 glareMaxOpacity?: number;7 rotationFactor?: number;8}910export function TiltCardGlareDemo({11 glareMaxOpacity = 0.05,12 rotationFactor = 15,13}: TiltCardGlareDemoProps) {14 return (15 <TiltCard16 className="w-[280px] overflow-hidden rounded-xl bg-gradient-to-br from-zinc-800 to-zinc-950 p-6"17 glare18 glareMaxOpacity={glareMaxOpacity}19 rotationFactor={rotationFactor}20 >21 <div22 className="flex flex-col gap-3"23 style={{ transform: "translateZ(40px)" }}24 >25 <p className="font-medium text-sm text-zinc-50">Glare</p>26 <p className="text-sm text-zinc-400">27 A light reflection sweeps across the surface as the card tilts,28 selling the material.29 </p>30 </div>31 </TiltCard>32 );33}3435export default TiltCardGlareDemo;
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 |
