这是一款鼠标悬停图片跟随上下移动代码,效果设计感都不错。
var cnt = 0;
$thumbScroller.find('img').each(function(){
var $img = $(this);
$('<img/>').load(function(){
++cnt;
if(cnt == scrollerContentCnt){
//one items height
itemHeight = $thumbScroller.find('.content:first').height();
buildScrollableItems();
//show the scrollable container
$thumbScroller.stop().animate({'left':'0px'},animSpeed);
}
}).attr('src',$img.attr('src'));
});
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791