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

for v5, there's no 'is-inview' after 'data-scroll-repeat' is added (on the top of the page) #537

Open boss006133 opened 6 months ago

boss006133 commented 6 months ago

Hello 👋

Describe the bug For v5, I was trying to add 'data-scroll-repeat' on a element, but there was no 'is-inview' classname on it while reloading the page(the scrollY is '0' => on the top of the page).

  1. If I remove 'data-scroll-repeat' and it will normal to trigger classname 'is-inview'.
  2. If I just scroll down 1px and it will normal to trigger classname 'is-inview'.

To Reproduce Like the screenshot below 螢幕擷取畫面 2023-12-06 182851 螢幕擷取畫面 2023-12-06 184613

Thank you 👊