Skip to content

Instantly share code, notes, and snippets.

@ooooak
Created May 6, 2015 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ooooak/115dda2f5d38b27da075 to your computer and use it in GitHub Desktop.
Save ooooak/115dda2f5d38b27da075 to your computer and use it in GitHub Desktop.
revolution: stop video on next slide
(function(){
if (typeof revapi2 === 'undefined'){
return;
}
revapi2.bind("revolution.slide.onloaded",function (e,data) {
revapi2.bind("revolution.slide.onchange",function (e,data) {
var iframes = $('.rev_slider > ul > li iframe');
$('.rev_slider > ul > li iframe').each(function(index, el) {
var $el = $(el);
$el.attr('src', $el.attr(src));
});
});
});
})();
@zemaximo87
Copy link

It worked perfectly, thanks!!

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