Created
May 1, 2014 14:46
-
-
Save tomhemsley/2c86c11cd1a2435fcfbb 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($options, $slider_id, $settings) { | |
$options['start'][] = "$('#metaslider_{$slider_id} li .animated').each(function(index) { | |
var el = $(this); | |
var cloned = el.clone(); | |
el.before(cloned); | |
$(this).remove(); | |
});"; | |
return $options; | |
} | |
add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_ie11_animation_fix', 11, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment