jlmakes / scrollreveal

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

Reveal does not animate when fired from onload event callbacks of uncached images #471

Open daveyjones opened 5 years ago

daveyjones commented 5 years ago

Demo

https://jsfiddle.net/p5vrj9hf/

Steps to reproduce:

  1. Open JSFiddle demo
  2. Open Chrome inspector on network tab
  3. Make sure "Disable cache" is unchecked
  4. Press "Run" a few times (images fade in properly)
  5. Now check "Disable cache"
  6. Press "Run" a few times (images pop in immediately with no fade-in)

Note: the issue disappears if you reduce the number of images from 10 to 2.

Environment

bmgdev commented 5 years ago

Any updates on this issue? You're right, ScrollReveal works great in FF - but in Chrome this onload issue has rendered SR useless as the animations are inconsistent. Curious if there will be a fix?

TomDeSmet commented 4 years ago

Having the same issues. Not a word on a fix yet?