A spring-animated 3D tilt wrapper that tracks the cursor position inside the element.
Made by LéoInstallation
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
rotationFactor | number | 15 | Maximum rotation in degrees |
isReverse | boolean | false | Reverse the tilt direction |
springOptions | SpringOptions | — | Forwarded to useSpring (stiffness, damping, …) |
className | string | — | Class applied to the motion wrapper |
style | MotionStyle | — | Style applied to the motion wrapper |