@@ -103,7 +103,7 @@ p.getAnimStart = function (computedStyle, tween, isSvg) {
103
103
const tweenStyle = tween . style || { } ;
104
104
Object . keys ( this . propsData . data ) . forEach ( key => {
105
105
const cssName = isConvert ( key ) ;
106
- let startData = computedStyle [ cssName ] ;
106
+ let startData = tweenStyle [ cssName ] || computedStyle [ cssName ] ;
107
107
const fixed = computedStyle . position === 'fixed' ;
108
108
if ( ! startData || startData === 'none' || startData === 'auto' ) {
109
109
startData = '' ;
@@ -131,10 +131,14 @@ p.getAnimStart = function (computedStyle, tween, isSvg) {
131
131
}
132
132
style . transform = transform ;
133
133
} else if ( cssName === 'filter' ) {
134
- this . filterName = checkStyleName ( 'filter' ) || 'filter' ;
135
- startData = computedStyle [ this . filterName ] ;
136
- this . filterObject = { ...this . filterObject , ...splitFilterToObject ( startData ) } ;
137
- startData = this . filterObject [ key ] || 0 ;
134
+ if ( tweenStyle [ cssName ] ) {
135
+ startData = tweenStyle [ cssName ] ;
136
+ } else {
137
+ this . filterName = checkStyleName ( 'filter' ) || 'filter' ;
138
+ startData = computedStyle [ this . filterName ] ;
139
+ this . filterObject = { ...this . filterObject , ...splitFilterToObject ( startData ) } ;
140
+ startData = this . filterObject [ key ] || 0 ;
141
+ }
138
142
startUnit = startData . toString ( ) . replace ( / [ ^ a - z | % ] / g, '' ) ;
139
143
endUnit = this . propsData . dataUnit [ key ] ;
140
144
if ( endUnit !== startUnit ) {
0 commit comments