【文件属性】:
文件名称:scroll-to-item:[不建议使用]滚动列表到项目
文件大小:48KB
文件格式:ZIP
更新时间:2021-05-21 09:00:41
JavaScript
ScrollToItem
滚动列表到项目()
用法
var scrollToItem = new ScrollToItem ( {
$scroll : $ ( '.js-list__scroll' ) ,
itemClassName : '.js-list__item' ,
} ) ;
scrollToItem . scrollToItem ( '0' ) ;
scrollToItem . scrollToItem ( '1' ) ;
scrollToItem . scrollToItem ( '2' ) ;
scrollToItem . scrollToItem ( '4' ) ;
scrollToItem . scrollToItem ( '1' ) ;
scrollToItem . scrollToItem ( '0' ) ;
scrollToItem . sc
【文件预览】:
scroll-to-item-master
----.travis.yml(75B)
----example()
--------index.html(3KB)
--------js()
----index.js(3KB)
----.jscsrc(400B)
----package.json(1KB)
----test()
--------index-x-test.html(2KB)
--------index-test.js(9KB)
--------index-test.html(2KB)
--------index-x-test.js(3KB)
----preview()
--------example.gif(42KB)
----LICENSE(1KB)
----.gitignore(27B)
----README.md(1KB)
----common.js(399B)
----.jshintrc(540B)
----.editorconfig(379B)