locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.54k stars 1.11k forks source link

v5 .is-inview class not being removed when leaving viewport, similar issue with data-scroll-call #544

Closed MontroseSt closed 22 hours ago

MontroseSt commented 5 months ago

the "is-inview" attribute is not being removed when an element is leaving the viewport. Demo

I had an similar issue when using the data-scroll-call in v5. Both "is-inview" class as well as the data-scroll-trigger when leaving the viewport didn't work. However, both appear to work fine when using the data-scroll-call without any other triggers DataScroll Demo