DEV Community

Discussion on: A neat DIY solution to animating on scroll (for any framework)

Collapse
 
tbroyer profile image
Thomas Broyer

I think nowadays you'd better use IntersectionObserver for that: developer.mozilla.org/en-US/docs/W...

Collapse
 
bholmesdev profile image
Ben Holmes • Edited

Woah, this looks amazing! Admittedly there's no IE support but still, this looks like a much more performant way of checking scroll position. Thanks for the link!

Update: Added a note to the beginning of this post