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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -