npmjs.org : tilt-hook
A simple React hook that creates a tilting card effect. ```jsx export default function CardWrapper() { const wrapperElement = useRef() const cardElement = useRef() const setDistance = useTilt(wrapperElement, cardElement, { degree: 30 })
Registry
- JSON
purl: pkg:npm/tilt-hook
Keywords:
react
, hook
, typescript
, tilt
, card
, 3d
License:
Latest release: over 1 year ago
First release: over 1 year ago
Downloads: 3 last month
Last synced: about 1 month ago