less

slider



slider

jQuery InfiniteLoopSlider

$(function(){
var setElm = $('.loopSlider'),
slideSpeed = 2000;

setElm.each(function(){
var self = $(this),
selfWidth = self.innerWidth(),
findUl = self.find('ul'),
findLi = findUl.find('li'),
listWidth = findLi.outerWidth(),
listCount = findLi.length,
loopWidth = listWidth * listCount;

findUl.wrapAll('');
var selfWrap = self.find('.loopSliderWrap');

if(loopWidth > selfWidth){
findUl.css({width:loopWidth}).clone().appendTo(selfWrap);

su01.net RSS を購読