Closed cedricmure closed 4 years ago
I would like to set autoPlay: false on beginning and use a button to start the carousel. But how I can define a speed autoplay in this case ?
autoPlay: false
$carousel.flickity({ autoPlay: false }); $button.click(function(){ $carousel.flickity('playPlayer'); });
@CM-Webdesign you can do the reverse and using the pause/unpause and pausing immediatly after init.
$carousel.flickity({ autoPlay: 1500 }); $carousel.flickity('pausePlayer'); $button.click(function(){ $carousel.flickity('unpausePlayer'); });
Oh yeah, you right. Thank you !
I would like to set
autoPlay: false
on beginning and use a button to start the carousel. But how I can define a speed autoplay in this case ?