jQuery上下滚动效果代码_JS文字无缝滚动
$(document).ready(function(){
setInterval(function(){
var firstItem = $('.container ul li:first-child');
var itemHeight = firstItem.height();
$('.container ul').animate({
top: -itemHeight + 'px'
}, 1000, function() {
$(this).css('top', 0).append(firstItem);
});
}, 2000);
});
文字无缝滚动jQuery上下滚动js效果代码.zip
预估大小:4个文件
css
文件夹
style.css
1KB
index.html
5KB
js
文件夹
jquery.js
49KB
scroll.js
1KB
25.6KB
文件大小:
评论区