Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set (wrap: 'circular') (loop) in “auto scroll” plugin in the new version of jCarousel (3.0)?

How to set (wrap: 'circular') (loop) in “auto scroll” plugin in the new version of jCarousel (3.0)?

I want the items too loop without stop as in previous version of jCarousel.

http://sorgalla.com/jcarousel/

Any kind help would be highly appreicaited.

like image 839
Kardo Avatar asked Nov 29 '13 05:11

Kardo


2 Answers

The wrap option has to be set when initialising the carousel, not for the pagination plugin:

$('.jcarousel')
    .jcarousel({
        wrap: 'circular'
    })
    .jcarouselAutoscroll({
        target: '+=1',
        interval: 3000
    });
like image 128
jsor Avatar answered Oct 03 '22 20:10

jsor


$('.jcarousel').jcarousel({wrap:"last"}).jcarouselAutoscroll();
like image 40
Cleber Avatar answered Oct 03 '22 20:10

Cleber