jsor / jcarousel

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

Center the image in responsive carousel #662

Closed tarungarg closed 10 years ago

tarungarg commented 10 years ago

Requirement: In my carousel, I have to show 5 images in desktop size and 3 images in tablet size. If I select any image and the image should be in center.

Problem: I am getting the image at center. But the problem is, if i select the first and second image for desktop size, the image switch to center but nothing shows in the left side. I have set the property "wrap: both". So the last image should show before the first image. But i am getting blank space from right side. Carousel in that case is not working properly. If we do same thing with last two images, the images get centred and it respects the "wrap: both" property from right side. But problem is in left side

jsor commented 10 years ago

Yes, as noted in the docs, the center option is experimental does not work as expected with wrap both/circular.