jquery - css thumb carousel stopping at 0 -
i working on thumb slider carousel project. did using css3. did , used cover div , inside used ul , slide left , right. cover div overflow hidden. works fine problem is, unable stop slide @ end of li's. how can achieve that? tried if else statements confused. full clode comments here http://jsfiddle.net/pqhak/
here sample code
$('#thumbslist').css('margin-left', positiontobemoved + 'px');
the full code in fiddle. please tell me doing wrong thanks.
for left arrow click use this
if (currentposition!=0) { var positiontobemoved = currentposition + 77; // setting th final fix// $('#thumbslist').css('margin-left', positiontobemoved + 'px'); } else { }
then stop passing after first div left. have careful moving should stop before check it
Comments
Post a Comment