1
我一直在使用fullPage.js作为项目,并且有一个事件需要在下一节加载时执行(不是在加载完成后)。有没有办法做到这一点?我似乎无法在documentation中找到类似的内容。fullPage.js onLoad回调?
列出的唯一回调是:
- 后负荷(anchorLink,索引)
- onLeave(索引,nextIndex,方向)
- AfterRender阶段()
- afterResize()
- afterSlideLoad( anchorLink,index,slideAnchor,slideIndex)
- onSlideLeave(anchorLink,index,slideIndex,direction)
主要想法是在我移动到另一个部分后立即向某个元素添加一个类。如果没有预先定义的回调,这将是最好的方法?