Bikram Ray
Posts: 0
Joined: Wed May 22, 2013 5:52 pm

carrousel not animating automatic

May be I am missing some step. The Carrousel is visible and manually images can be changed by sliding the images. But I was expecting the images should change automatic. I have given animation time 5. Is automatic image changes (actually I am using html option of the carrousel which contains the image in grid).

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

carrousel not animating automatic

Hello Bikram,

Please clarify, do you mean that you have installed Animation Duration? This time of animating change of slides (in milliseconds). Unfortunately we do not have any property to make automatic slide change. But you can easily do this with js. For example on page show of the event put this code:

codefunction automaticCarousel() {
if ($.mobile.activePage.find( "[dsid=mobilecarouselName]" ).size()) {
Appery( "mobilecarouselName" ).carouselRoot.carousel( "next");
setTimeout(automaticCarousel, 1000);
}
}
setTimeout(automaticCarousel, 1000);/code

jeeper_creepers
Posts: 0
Joined: Thu Jul 03, 2014 2:29 pm

carrousel not animating automatic

hi mr Karachevtsev,
i used your code that works like a charm, but it seems it makes number_of_frames * 2 cycling. I have a 4 framed carousel but if i see the animation, and the code, i see 8 cycles so 4 times stuff and the next 4 times nothing. i remark that i have created a dynamic carousel, i take some news from a json and i create the carousel items content on the fly with js.
please help me, thank you in advance!

Return to “Issues”