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

[FEATURE REQUEST] changing transitionInterval value dynamically with notifications #24

Open
acimail01 opened this issue Oct 4, 2019 · 2 comments

Comments

@acimail01
Copy link

Is it possible to dynamically change the transitionInterval via notification, so that you can switch between manual and automatic navigation?

like:

if (notification === "CAROUSEL_TIMER_TOGGLE") {
	if (this.config.transitionInterval <= 0) {
		this.config.transitionInterval = 10000; // <-- any default value
		this.restartTimer();                    // <--start automatic mode
	} else {
		this.config.transitionInterval = 0;    // <--stop automatic mode
		???                                   // <-- start manual mode
	}
}
@JoshuaEPSamuel
Copy link

@acimail01 is there an update on this? Would love to also implement this

@shbatm
Copy link
Owner

shbatm commented Feb 1, 2022

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

No branches or pull requests

3 participants