Rotating Card
Web (React)
A 3D-style rotating card that responds to user hover with smooth perspective shifts.
A 3D-style rotating card that responds to user hover with smooth perspective shifts. Adds depth and interactivity to feature displays or profile cards.
Perspective
Hover over this card to see the 3D rotation effect. The card follows your mouse movement with smooth, physics-based rotation.
Interactive Element
Installation
CLI
npx @modus-ui/cli add rotating-cardManual
- Copy the code from the component tab.
- Create a file at
components/ui/rotating-card.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | - | The content inside the card. |
className | string | - | Additional CSS classes for the card. |
Comments