scrollToSmooth.js锚点滚动插件右侧圆点

scrollToSmooth.js是一个纯JS平滑滚动动画,页面滚动到指定的锚点链接。适用于粘性的导航栏。引用js类库创建锚点标记

初始化调用插件var smoothScroll = new scrollToSmooth('a') smoothScroll.init();可以指定动画时间var smoothScroll = new scrollToSmooth('a',{ duration: 500 })还能指定动画效果var smoothScroll = new scrollToSmooth('a',{ easing: "linear" //linear easeInQuad easeOutQuad easeInOutQuad easeInCubic easeOutCubic easeInOutCubic easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInSine easeOutSine easeInOutSine easeInExpo easeOutExpo easeInOutExpo easeInCirc easeOutCirc easeInOutCirc easeInElastic easeOutElastic easeInOutElastic easeInBack easeOutBack easeInOutBack easeInBounce easeOutBounce easeInOutBounce }) 回调方法var smoothScroll = new scrollToSmooth('a',{ callback: function () { console.log('we reached it!'); } })

scrollToSmooth.js锚点滚动插件右侧圆点

preview        Points Download        6毛Download        Share Download       

文件目录······
暂无数据

未经允许不得转载: ICode联盟 » Plugin Special Effects » scrollToSmooth.js锚点滚动插件右侧圆点

 猜你喜欢 更多»
 工具推荐 更多»