Created
May 1, 2014 14:49
-
-
Save tomhemsley/8bddcc59d92b3498bbab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function metaslider_flex_ie11_animation_fix_js($js, $slider_id) { | |
$js .= "\n $('#metaslider_{$slider_id} li .animated').each(function(index) { | |
var el = $(this); | |
var cloned = el.clone(); | |
el.before(cloned); | |
$(this).remove(); | |
});"; | |
return $js; | |
} | |
add_filter('metaslider_flex_slider_javascript_before', 'metaslider_flex_ie11_animation_fix_js', 11, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment