Comments (14)
I've extended the $$
helper function in order to query within a given container instead of the entire DOM, and fixed the OP issue as well.
from wallop.
Hey, that's interesting, I will look into it and get back to you.
Thanks
from wallop.
I cannot seem to replicate your issue.
I've created this Pen to test it out: http://codepen.io/peduarte/pen/gaoEXz
Can you show me how you're getting this problem?
from wallop.
Closing as I am unable to replicate your issue, feel free to re open or ask any questions.
from wallop.
@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.
http://codepen.io/anon/pen/xwYLNJ
from wallop.
(I seem to be unable to reopen this issue)
from wallop.
Wow, amazing find!
Will look into it
from wallop.
Hi guys Did you solve the issue? I have to slider with autoplay and the animations doesn't work properly
from wallop.
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.
from wallop.
Hey guys, so sorry for the delay on this. I promise I'll look into it as soon as I can.
from wallop.
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);
}
$$
is taking element
, but it's just a string of a css class. The if statement in $$
is pointless.
document.querySelectorAll
is querying the entire DOM. Also, it will always return an array, empty or not. 0 indexing an empty array returns null.
removeAllHelperSettings
is basically just going to town on any DOM element with those classes.
from wallop.
@Djules Thanks, I'll take a look at the PR. What's the OP issue?
from wallop.
OP stands for Original Poster, @curdin in this case :)
from wallop.
@Djules Ahhh ok!
from wallop.
Related Issues (20)
- Collaboration HOT 1
- Autostart reset timer HOT 1
- Expose method for updating global variables HOT 4
- How to import it in an angular 2 project? HOT 3
- How about multiple columns? HOT 5
- New modifiers: show & hide HOT 2
- New example: Wallop with Custom Markup HOT 1
- Uncaught (in promise) Error HOT 14
- Wallop is not a constructor HOT 1
- Include main in bower.json too HOT 2
- Wrong behaviour for slider with two slides
- slider autoplay HOT 1
- Which browsers are supported? HOT 1
- Can't resolve 'Wallopβ when building on linux HOT 4
- Problem with absolute positioned items, flexbox and Firefox HOT 3
- equal height slides HOT 4
- All images broken on CodePen examples collection
- .mp4 videos in slide don't work in Chrome HOT 1
- Slide effect in Safari not nice
- Consuta Blancos entre distintas imagenes;
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wallop.