jlmakes / scrollreveal

Animate elements as they scroll into view.
https://scrollrevealjs.org/
22.33k stars 2.26k forks source link

Sometimes not working #503

Closed probablykasper closed 4 years ago

probablykasper commented 5 years ago

It seems that when scrolling is not smooth, all content on the page will already be visible when you scroll down to it. If I scroll down a page, it might work fine initially, but then the bug is triggered, and all the remaining elements become visible.

Usually this is only triggered when I scroll very fast. When my CPU is fired up, it happens much more frequently due to scrolling being a bit laggy. Turning on my mouse's mode that makes the scroll wheel move in "steps" also makes it happen more often.

Environment

I've been able to reproduce it on Chrome 76 and Opera 76. I haven't been able to do it on Firefox 68 or Safari 12, but I suspect it's because scrolling on those was less laggy.