Tilt
Tilts content in 3D based on the pointer position, with an optional pointer-following glare; disabled under reduced motion.
Elyri Tilt
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Content to tilt |
max | number | 10 | Maximum tilt angle in degrees |
perspective | number | 800 | Perspective distance in pixels; smaller values exaggerate the depth |
glare | boolean | true | Whether to show a pointer-following glare |
className | string | — | Extra class name |
Dependencies
PointerEvent