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);

});

zip
文字无缝滚动jQuery上下滚动js效果代码.zip 预估大小:4个文件
folder
css 文件夹
file
style.css 1KB
file
index.html 5KB
folder
js 文件夹
file
jquery.js 49KB
file
scroll.js 1KB
zip 文件大小:25.6KB