DEV Community

Cory’s Coding Tips

Cory Harkins on October 15, 2023

Checking if an element has scrolled into view. I’ll keep this short and sweet because it took me a while to get this just right. Here’s the snipp...
Collapse
 
link2twenty profile image
Andrew Bone

I'd have a look at Intersection observers they're quite a bit lighter (by only firing when somethings enters or leaves a zone).

Collapse
 
charkinsdevelopment profile image
Cory Harkins

Oh wow!
That's awesome!