
I have this situation. The two items in the middle are always bigger than the others and I don’t know how to get it.
I’m using jcarousel. If there’s another alternative jquery plugin, it will be welcome.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
wat jQuery alternative 😉 it is very simple but works
http://codepen.io/dmi3y/full/dCvkl
okay example is on codepen, the heart of it is snippet
Core idea just in heavy DOM manipulations, I need explain it a bit.
okay what’s going on when you click on right button:
First animate the whole
ulcontainer to right, and at the end of animation just took the first item into the list, put it at the end. That’s easy.Left animation is bit trickier:
At the first point did fast moving for
ulcontainer to the right (negative left), than instantly took last item and put it on the first place, and just after this animate to the left.You see, so many calls under the hood, that’s why it is heavy. But it will work smooth, at the most of implementations, though it has huge potential for optimization.