这是文字滚动插件,自动滚动,向上滚动,向下滚动功能;
调用方法:
JavaScript代码
- $(document).ready(function(){ ??
- ????????$(“#scrollDiv”).textSlider({ ??
- ????????????line:4, ??
- ????????????speed:500, ??
- ????????????timer:3000 ??
- ????????}); ??
- });??
其中:
line:滚动几行;
speed:滚动速度;
timer:自动滚动间隔;
演示地址:https://www.7psus5.com/demo/jQuery/textSlider/textSlider.html
最新评论
写的挺好的
有没有兴趣翻译 impatient js? https://exploringjs.com/impatient-js/index.html
Flexbox playground is so great!
感谢总结。
awesome!
这个好像很早就看到类似的文章了
比其他的教程好太多了
柯理化讲的好模糊…没懂