All Projects → unix → cool-scroll

unix / cool-scroll

Licence: other
cool-scroll

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

cool-scroll

灵感来自rdio-copy项目,它是模仿rdio,我发现它们引入了很多第三方库,比如jquery,skrollr之类,所以写了一个原生的滑动插件. 相比之下,它更简单,小巧,敏捷.

###DEMO
demo ###起步 通过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

<img src="" cool-scroll-start="20" cool-scroll-end="80">
cool-scroll-start => 图片滑动开始百分比,默认20
cool-scroll-start => 图片滑动结束百分比,默认80

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].