Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Slider Callbacks? #1

Open
zumajoe opened this Issue · 1 comment

1 participant

zumajoe
zumajoe

Hi there,

What would be the best way to initiate / listen for when the slider is starting or finishing animations?

For example, if I have a video playing inside one of the slides it should be stopped/paused as it will continue playing in the background if animated to the next slide.

zumajoe

I just placed my code here and everything is OK. :)

else if (options.animation == 'slide') {
if (!infinite) {
wrapper.animate({ marginLeft: -$this.width() / options.items * index }, options.animationDuration, function() {
isAnimating = false;
$('video').each(function(){this.player.pause()})

                    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.