DEV Community

Mohd Dawood
Mohd Dawood

Posted on

Use Parallax hook

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

Top comments (0)