Page 1 of 1

carrousel not animating automatic

Posted: Fri Jul 11, 2014 7:06 pm
by Bikram Ray

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).


carrousel not animating automatic

Posted: Fri Jul 11, 2014 8:46 pm
by Evgene Karachevtsev

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


carrousel not animating automatic

Posted: Sat Jul 12, 2014 3:38 pm
by jeeper_creepers

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!