Home  >  Article  >  Web Front-end  >  jQuery product intermittent scroll down effect core code_jquery

jQuery product intermittent scroll down effect core code_jquery

WBOY
WBOYOriginal
2016-05-16 16:49:051337browse

The core code is as follows:

Copy code The code is as follows:

$(function(){
var _BuyList=$("#buyList");
var Trundle = function () {
_BuyList.prepend(_BuyList.find("li:last")).css('marginTop', '-85px ');
_BuyList.animate({ 'marginTop': '0px' }, 800);
}
var setTrundle = setInterval(Trundle, 3000);
_BuyList.hover(function () {
clearInterval(setTrundle);
setTrundle = null;
},function () {
setTrundle = setInterval(Trundle, 3000);
});
});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn