gpt4 book ai didi

jquery - aos.js 不适用于 fullPage.js

转载 作者:行者123 更新时间:2023-12-01 04:01:17 26 4
gpt4 key购买 nike

我使用FullPage用于在部分之间进行动画滚动。

我想让项目显示为 aos.js但是当 fullPage.js 工作时 aos 不起作用。

最佳答案

详情请参阅 the fullPage.js FAQs

Short answer: use the scrollBar:true option for fullPage.js or autoScrolling:false if you don't want to use the auto-scrolling feature. Or... use parallax:true with the Parallax extension.

Explanation: Parallax, as well as many other plugins which depends on the scrolling of the site, listens the scrollTop property of javascript and the scroll event. fullPage.js doesn't actually scroll the site but it changes the top or translate3d property of the site. Only when using the fullPage.js option scrollBar:true or autoScrolling:false it will actually scroll the site in a way it is accessible for the scrollTop property.

但我鼓励您使用 fullPage.js callbacks触发动画或 fullPage.js state classes如果你想用 CSS 来实现它们。请参阅this video tutorial .

关于jquery - aos.js 不适用于 fullPage.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42762025/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com