dbramwell / react-animate-on-scroll

React component to provide animations when the user scrolls
618 stars 72 forks source link

when reload page, the component doesn't animated. #81

Open abdullah-sameh opened 1 year ago

abdullah-sameh commented 1 year ago

the component must be in the middle of page to be animated like in your demo page,The problem, that I can't make the header of page animated when reload page, i had to scroll to trigger.

VaibhavRawat-325 commented 1 year ago

In my case, I added offset={1} to the scroll animation component to run animation on entering the page.

firstpersoncode commented 11 months ago

In my case, I added offset={1} to the scroll animation component to run animation on entering the page.

Does this only work if scrollableParentSelector defaults to the document? I tried setting scrollableParentSelector to the parent div that contains the animated scroll elements, but it didn't work as expected. I had to scroll until I passed the element first, then scroll back, and finally scroll past the element again until it worked.

kolokytp commented 1 month ago

Any updates on this one? I seem to have the same problem as well

amazingdudu commented 3 weeks ago

same problem