Tilt
A card that leans toward the pointer on a loose spring, overshooting slightly and settling, with a highlight that travels round its 1px edge like light on a bevel.
$149 once · every Pro piece
Customize
The bright segment sits on the edge facing a light above-left and slides round the perimeter as the card tilts; pressed, the card sinks and its core runs accent. Children marked with a depth shift with the tilt for parallax.
Install
npx shadcn@latest add @obsyde/tiltNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Tilt } from '@/components/obsyde/ember/tilt/Tilt';
export function Example() {
return (
<Tilt />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/tilt/Tilt.tsxcomponentember/tilt/tilt-demo.cssstylesember/tilt/tilt.cssstylesember/tilt/TiltDemo.tsxdemoember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
maxMax lean (deg) | number | 8 |
radiusRadius (px) | number | 14 |