mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 21:05:03 -05:00
Fix #13939: Same-unit relative animations
(cherry picked from commit 00231d5d94)
This commit is contained in:
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -42,8 +42,8 @@ var fxNow, timerId,
|
||||
|
||||
// Update tween properties
|
||||
if ( parts ) {
|
||||
start = tween.start = +start || +target || 0;
|
||||
tween.unit = unit;
|
||||
tween.start = +start || +target || 0;
|
||||
// If a +=/-= token was provided, we're doing a relative animation
|
||||
tween.end = parts[ 1 ] ?
|
||||
start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
|
||||
|
||||
Reference in New Issue
Block a user