https://github.com/unix/cool-scroll
cool-scroll
https://github.com/unix/cool-scroll
Last synced: 3 months ago
JSON representation
cool-scroll
- Host: GitHub
- URL: https://github.com/unix/cool-scroll
- Owner: unix
- Created: 2016-03-17T14:12:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-20T14:42:42.000Z (over 9 years ago)
- Last Synced: 2025-03-18T00:43:35.574Z (3 months ago)
- Language: CSS
- Size: 759 KB
- Stars: 16
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cool-scroll
灵感来自*rdio-copy*项目,它是模仿*rdio*,我发现它们引入了很多第三方库,比如*jquery*,*skrollr*之类,所以写了一个原生的滑动插件.
相比之下,它更简单,小巧,敏捷.###DEMO
[demo](http://wittsay.cc/notebook/demo/cool-scroll/)
###起步
通过*bower*安装插件:
`bower install cool-scroll --save`
###配置
`var cs = new CoolScroll;cs.init(scrollStart,scrollEnd,speed);`
scrollStart => 字符串,自定义标记开始属性,默认为cool-scroll-start
scrollEnd => 字符串,自定义标记结束属性,默认为cool-scroll-end
speed => 数字,平滑滑动速度,默认6`
`
cool-scroll-start => 图片滑动开始百分比,默认20
cool-scroll-start => 图片滑动结束百分比,默认80