-
Notifications
You must be signed in to change notification settings - Fork 79
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
Multiple slides animation #55
Comments
Hey, that's interesting, I will look into it and get back to you. |
I cannot seem to replicate your issue. Can you show me how you're getting this problem? |
Closing as I am unable to replicate your issue, feel free to re open or ask any questions. |
@peduarte Apologies - i was away from a computer for a couple of days. I've updated the codepen to demostrate the issue. If you click the Advance both button you'll see that the left one fails to use a transition. |
(I seem to be unable to reopen this issue) |
Wow, amazing find! |
Hi guys Did you solve the issue? I have to slider with autoplay and the animations doesn't work properly |
I found this issue too when using the autoplay example but changing it to autoplay 2 sliders. The classes 'hideprevious' and 'shownext' get added to only 1 of the sliders, not all. |
Hey guys, so sorry for the delay on this. I promise I'll look into it as soon as I can. 🙏 |
Here // Reset all settings by removing classes and attributes added by goTo() & updateButtonStates()
WS.removeAllHelperSettings = function () {
removeClass(this.allItemsArray[this.currentItemIndex], this.options.currentItemClass);
removeClass($$(this.options.hidePreviousClass)[0], this.options.hidePreviousClass);
removeClass($$(this.options.hideNextClass)[0], this.options.hideNextClass);
removeClass($$(this.options.showPreviousClass)[0], this.options.showPreviousClass);
removeClass($$(this.options.showNextClass)[0], this.options.showNextClass);
if (!this.buttonPrevious && !this.buttonNext) { return; }
this.buttonPrevious.removeAttribute('disabled');
this.buttonNext.removeAttribute('disabled');
}; and here // Helper functions
function $$(element) {
if (!element) { return; }
return document.querySelectorAll('.' + element);
}
|
I've extended the |
@Djules Thanks, I'll take a look at the PR. What's the OP issue? |
OP stands for Original Poster, @curdin in this case :) |
@Djules Ahhh ok! 👍 |
I've got a setup with multiple sliders on a page all using a slide animation. The issue is that only one actually animates as the other ones seem to get their classes stripped (they still advance but without animation)
It seems the issue happens due to the addClass code in WS.goto() or possibly the removeAllHelperSettings.
Do you have any insights on what is happening there?
The text was updated successfully, but these errors were encountered: