0.1.2 • Published 6 months ago
helpful-motion-hooks v0.1.2
helpful-motion-hooks
Just some helpful framer motion hooks
useParallax
import { useParallax } from 'helpful-motion-hooks'
const parallaxRef = useRef()
const [ty, invty] = useParallax(ref)
useRelativeMouseFollow
import { useRelativeMouseFollow } from 'helpful-motion-hooks'
const followRef = useRef()
const [rx, ry] = useRelativeMouseFollow(ref)