jlmakes / scrollreveal

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

Not working on page load when in view (using BarbaJS) #491

Closed deodat closed 5 years ago

deodat commented 5 years ago

Environment

Hello,

I’ve a problem with ScrollReveal on this page (preprod : invite / snnik8CFKXLB ) : ~https://preprod-liner.the-stash-house.fr/cas-pratique/saint-jean-de-monts/~ (broken)

the ScrollReveals animations work well except when “in view” on the page load... if I deactivate Barba, it works as expected.

The animation (fade and move bottom-up) is on “LE CLIENT” and the three blocks after that (paragraph of text beginning with “Du rapprochement de 5 territoires entre terre et mer, ...“, the block of text on violet background and the logo “Saint Jean de Monts” after that.

It works when you scroll from the top of the page to this part of the page.

But when you reload the page on this particular part of the page, the animation doesn’t play at all.

Does anyone met this issue or have any idea on how to resolve it ?

Thanks,

Regards,

David