Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have autoplay turn off and on by a simple function call #16

Open
monu180 opened this issue Dec 30, 2013 · 1 comment
Open

have autoplay turn off and on by a simple function call #16

monu180 opened this issue Dec 30, 2013 · 1 comment

Comments

@monu180
Copy link

monu180 commented Dec 30, 2013

can we have the autoplay feature turn off and on by a simple function call?
like
carousel.autoplay(true); // to turn autoplay on
carousel.autoplay(false) // to turn autoplay off

@erdaldemirci
Copy link

erdaldemirci commented Nov 17, 2017

add to after line 637;

this.stopAutoPlay = function () {
autoPlay(true);
options.autoPlay = 0;
};

this.startAutoPlay = function () {
autoPlay(false);
options.autoPlay = 1;
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants