jQuery.Marquee 介绍
jQuery.Marquee是一款jQuery 文字 跑马灯 插件 。jQuery.Marquee跑马灯 插件 可以结合使用css3动画,制作 文字 的上下左右移动 效果 。?
?jQueryMarquee一共有三个可选参数, 一个 回调 方法 。
$(dom).marquee(options,callback);
options 可选参数:
options : {
direction : 'top',
pixels : 5,
speed : 30,
}
direction
移动方向:
左:left
右:right
上:top
下:b ott om;
pixels
每次移动的像素数
speed
两次移动之前的间隔时间数(毫秒) 调用 方法 如下:
$("scroll-a").marquee();
$("scroll-b").marquee({direction:'top'});
$("scroll-c").marquee({direction:'right',pixels:2,speed:30});
$("scroll-d").marquee({direction:"b ott om",speed:30},function(){
console.log("执行了一次");
});
网站地址 : http://aamirafridi.com/jquery/jquery-marquee-plugin
GitHub: https://github.com/aamirafridi/jQuery.Marquee
网站描述: 基于 jquery 实现的 marquee 无缝滚动 插件
jQuery.Marquee官方网站
官方网站: http://aamirafridi.com/jquery/jquery-marquee-plugin
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。