简体   繁体   English

在视口中显示之前加载滚动动画的 AOS

[英]AOS on scroll animation loading prior to showing in viewport

I've added the AOS on scroll javascript to my website.我已将AOS on scroll javascript 添加到我的网站。 I know that the script is working properly but for some reason the animation that I've added to the logo with the purple background (below the yoga photo) is animating before it's visible in the viewport.我知道脚本工作正常,但由于某种原因,我添加到带有紫色背景的徽标(瑜伽照片下方)的动画在视口中可见之前就开始动画了。 I assume this might have something to do with the fact that the height of the top portion of the page is created dynamically based on the viewport, but I'm not totally sure what the issue is.我认为这可能与页面顶部的高度是基于视口动态创建的事实有关,但我不完全确定问题是什么。

Here's a link to the website: http://awaken1.thecustompixel.com/这是网站的链接: http : //awaken1.thecustompixel.com/

If you scroll down to the bottom of the page you can see the script is working properly with the three-column section.如果向下滚动到页面底部,您可以看到脚本在三栏部分正常工作。 Any ideas on how to fix this?有想法该怎么解决这个吗? Thanks!谢谢!

I see that you removed AOS animation from this logo, if you could add it once again I could check why it's not working.我看到您从此徽标中删除了 AOS 动画,如果您可以再次添加它,我可以检查为什么它不起作用。 But I think that setting data-aos-offset="0" on this element might resolve your problem.但我认为在此元素上设置data-aos-offset="0"可能会解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM