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...
For further actions, you may consider blocking this person and/or reporting abuse
I'd have a look at Intersection observers they're quite a bit lighter (by only firing when somethings enters or leaves a zone).
Oh wow!
That's awesome!