How to stop and remove anythingSlider
Posted
by
d_rail
on Stack Overflow
See other posts from Stack Overflow
or by d_rail
Published on 2012-12-16T05:02:25Z
Indexed on
2012/12/16
5:03 UTC
Read the original article
Hit count: 143
jQuery
|anythingslider
I have several sliders on the same page and but don't show all at once. I would like to be able to stop a slider and remove the animation by an event function. As it works right now, if I hide a slider, it still runs in the background, the dom shows the images rotating and the url parameters change.
I've seen this question, but it did not work for me: How to stop AnythingSlider when Flowplayer clicked
This is also somewhat similar, but I want to remove the slider instead of restarting: AnythingSlider: how to restart slideshow
function stopAnythingSlider() {
// I receive `TypeError: $(".anythingSlider").data("AnythingSlider") is undefined`
// $('.anythingSlider').data('AnythingSlider').startStop(false);
}
© Stack Overflow or respective owner