jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

A Couple of Question & A Bug. #720

Closed ctf0 closed 9 years ago

ctf0 commented 10 years ago

first many thanx for this plugin ,i really appreciate the simplicity of it.

The Test Pen

A Bug

when i use the nav-next the carousel doesn't go to the last item ,instead it goes back to the start ,but when i use the nav-prev it goes to the last one without any prob ,this happens only when using wrap: "?" as a solution for that i add an empty div but sadly if u used the nav-prev it will take u to a empty slide ,check the above pen.

Questions

i already tried animateend / animate / target / first / last / visible / fullyvisible / targetin / targetout but with no luck :( , i also tried to get to what i want with the margin on the li:nth-child() but unfortunately they don't give the same outcome as the screen shots ,thats why i tried all the above.

EDIT:

finally got it working ,also done with the margin on scroll but the problem is that the margin change makes the items jump instead of going smoothly in-the-view.