scrollify.js 鼠标滚动

参数详解

  • section
  • 节点部分选择器.
  • sectionName
  • 每一个section节点对应的data属性.
  • easing
  • 定义缓冲动画.
  • offset
  • 定义每个色彩tion节点的偏移量.
  • scrollbars
  • 是否显示滚动条.
  • before
  • 回调函数,滚动开始前触发.
  • after
  • 回调函数,滚动完成后触发.
  • 在线实例

    实例演示

    使用方法

    1. <! doctype html>
    2. <html>
    3. <head>
    4. <script>
    5. $(function() {
    6. $.scrollify({
    7. section : "section",
    8. });
    9. });
    10. </script>
    11. </head>
    12. <body>
    13. <section></section>
    14. <section></section>
    15. </body>
    16. </html
    复制
    1. $.scrollify({
    2. section : "section",
    3. sectionName : "section-name",
    4. easing: "easeOutExpo",
    5. scrollSpeed: 1100,
    6. offset : 0,
    7. scrollbars: true,
    8. before:function() {},
    9. after:function() {}
    10. });
    复制

     

    1. $.scrollify("move","#name");
    复制

     

猜你喜欢

转载自zaixianshouce.iteye.com/blog/2327207