javascript - FullPage.js 和 SlimScrolling.js 更改滚动步骤

标签 javascript jquery jquery-plugins fullpage.js slimscroll

我已经用overflowScroll:true实现了FullPage.js,因为我读到需要slimscroll.js。除了部分内的滚动有点跳跃太多的问题之外,一切正常,有没有办法减少滚动步骤?

注意:由于某种原因,它不允许我使用该步骤添加 slimscroll 中的函数。 有什么想法吗?

他们还说 FullPage.js 已经制作了带有 iScroll 的版本,但似乎我在任何地方都找不到它。

亲切的问候

最佳答案

正如我在您对 the article 的评论中回答的那样.

fullPage.js is not using slimScroll.js anymore but iScroll.js instead. You might be able to find something about that in their docs http://iscrolljs.com/. Then you can ass the options to fullPage.js through the option scrollOverflowOptions as detailed in the docs.

例如:

$('#fullPage').fullPage({
    scrollOverflowOptions:{
        demo: 'aaa'
    }
});

关于javascript - FullPage.js 和 SlimScrolling.js 更改滚动步骤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41596687/

相关文章:

AJAX 操作完成时,Javascript 回调不会触发

javascript - 我们可以在 </body> 之前的 IE 条件注释中添加 javascript

javascript - 如何在tinyMce中添加自定义 block

javascript - 如何首先渲染搜索到的项目和所有匹配的项目JavaScript?

jquery - 剑道网格 incell 编辑中的组合框

jquery - Tinymce如何减少多个实例的选项

javascript - 页面重新加载后相同的 Ajax 响应

javascript - 如何根据属性在类中的位置获取元素的具体名称

javascript - 需要在jquery中访问autocomplete comboBox的ID

jquery-plugins - 如何将 bootstrap.tooltips 插件应用于动态生成的元素?