Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anything Slider not sliding with embedded iframes. Re: Anything Slider not sliding with embedded iframes.

#88867
tblanco
Member

Here i found :

$('#slider').anythingSlider({

// Callback when the plugin finished initializing
onInitialized: function(e, slider) {
slider.$items.not( slider.$currentPage ).find('iframe,video').fadeOut();
},
// Callback before slide animates
onSlideBegin: function(e, slider) {
slider.$currentPage.find('iframe,video').fadeOut(slider.animationTime);
},
// Callback when slide completes - no event variable!
onSlideComplete: function(slider) {
slider.$targetPage.find('iframe,video').fadeIn(slider.animationTime);
},

});

but this doesn’t seem to help when i put this script under the slider in the html/php.
Is this what you mean?
If yes, where is the right place to put the script?