This content originally appeared on DEV Community and was authored by Mohd Dawood
I Built a lightweight, reusable useParallax hook to implement parallax without external libraries. Easy to integrate, but works only with React/Next.js.
Uses HTML data attributes and an AbortController to efficiently manage scroll events based on visibility.
Github link: https://github.com/MohdDawoodO/parallax
Live demo: https://useparallax.vercel.app
This content originally appeared on DEV Community and was authored by Mohd Dawood