diff --git a/scripts/src/jquery.animate-enhanced.js b/scripts/src/jquery.animate-enhanced.js index 90229ef..c519993 100644 --- a/scripts/src/jquery.animate-enhanced.js +++ b/scripts/src/jquery.animate-enhanced.js @@ -667,6 +667,12 @@ Changelog: bypassPlugin = (typeof prop['avoidCSSTransitions'] !== 'undefined') ? prop['avoidCSSTransitions'] : pluginDisabledDefault; if (bypassPlugin === true || !cssTransitionsSupported || _isEmptyObject(prop) || _isBoxShortcut(prop) || optall.duration <= 0 || optall.step) { + //fallback for special easing that use CUBIC_BEZIER. + if($.easing && !$.easing.hasOwnProperty(arguments[2])) { + if((arguments[2] !== 'linear' && arguments[2] !== 'swing') ){ + arguments[2] = 'linear'; + } + } return originalAnimateMethod.apply(this, arguments); }