aos icon indicating copy to clipboard operation
aos copied to clipboard

AOS is not working when window scroll event is not fired

Open h3ckphy opened this issue 4 years ago • 2 comments

Hi. I have a div with class name "page" inside my body tag. My web page is organized so that scroll event is not fired on window object, but it is triggered on that .page element. And AOS thinks that I'm not scrolling at all. I bet you have a line in your source files like window.addEventListener("scroll", doAOS) or document.addEventListener("scroll", doAOS).

Can you please add an option which specifies on which element's scroll event AOS should work?

h3ckphy avatar Oct 20 '21 14:10 h3ckphy

你的问题解决了吗?我也遇到同样的问题了。

duanhaobo avatar Jan 19 '22 07:01 duanhaobo

No, I'm not using AOS js anymore. Just make your html tag to be scrollable. Remove height: 100% from html and body.

h3ckphy avatar Jan 25 '22 02:01 h3ckphy