我将 fullpage.js 与 fp-auto-height
结合使用,以确保幻灯片不是屏幕的全高,但向下滚动时它不会对齐到顶部。
我创建了一个 js fiddle :https://jsfiddle.net/jw7enf9t/4/
滚动的时候可以看到gap在上面,我想要gap在bottom,这样可以吗?我没有看到执行此操作的任何选项吗?
任何帮助将不胜感激,祝一切顺利,马特
最佳答案
There's an open issue about it在 fullpage.js 问题论坛中。
尚未实现任何解决方案。 fullpage.js 的默认行为如下:
fullPage.js will animate to the top if you come from a section above the destination one. It will animate to the bottom if you come from a section below the destination one.
为什么?因为该功能最初虽然是用于页脚,但在该特定场景中,这种行为是预期的。
关于jquery - Fullpage.js 自动高度修复幻灯片在屏幕中央,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37809460/