mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 07:55:21 -05:00
Fix #13183: Wrong animation initial value calc. Close gh-1136.
This commit is contained in:
committed by
Dave Methvin
parent
79feac9584
commit
65df32dc21
4
src/effects.js
vendored
4
src/effects.js
vendored
@@ -427,11 +427,11 @@ Tween.propHooks = {
|
||||
return tween.elem[ tween.prop ];
|
||||
}
|
||||
|
||||
// passing a non empty string as a 3rd parameter to .css will automatically
|
||||
// passing an empty string as a 3rd parameter to .css will automatically
|
||||
// attempt a parseFloat and fallback to a string if the parse fails
|
||||
// so, simple values such as "10px" are parsed to Float.
|
||||
// complex values such as "rotate(1rad)" are returned as is.
|
||||
result = jQuery.css( tween.elem, tween.prop, "auto" );
|
||||
result = jQuery.css( tween.elem, tween.prop, "" );
|
||||
// Empty strings, null, undefined and "auto" are converted to 0.
|
||||
return !result || result === "auto" ? 0 : result;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user