37 Star 116 Fork 26

mqycn / jQueryMarquee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 772 Bytes
一键复制 编辑 原始数据 按行查看 历史
mqycn 提交于 2017-03-07 13:35 . 更新 README.md

#jQueryMarquee

一共有三个可选参数,一个回调方法。

$(dom).marquee(options, callback);

options 可选参数:

options : {
    direction : 'top',
    pixels : 5,
    speed : 30,
}

direction

移动方向:
    左:left
    右:right
    上:top
    下:bottom;

pixels

每次移动的像素数

speed

两次移动之前的间隔时间数(毫秒)

调用方法如下:

$("scroll-a").marquee();
 
$("scroll-b").marquee({direction:'top'});

$("scroll-c").marquee({direction:'right',pixels:2,speed:30});
 
$("scroll-d").marquee({direction:"bottom",pixels:2,speed:30}, function(){
    console.log("执行了一次");
});
JavaScript
1
https://gitee.com/mqycn/jQueryMarquee.git
git@gitee.com:mqycn/jQueryMarquee.git
mqycn
jQueryMarquee
jQueryMarquee
master

搜索帮助