@@ -144,8 +144,9 @@ var appendCSSValueToKey = function(/*DOMElement*/ anElement, /*CPString*/aValue,
144
144
// Prepare target for this specific animation.
145
145
[self target: target addCSSAnimationPropertyForKey: kind append: x !== 0 ];
146
146
147
- // Oddly enough, this does not need to be wrapped in a setTimeout .
147
+ // Needs to be wrapped.
148
148
setTimeout (function (_target , _end ){
149
+ _target ._DOMElement .style [" -webkit-transform" ] = " translate3d(0px, 0px, 0px)" ;
149
150
[_target setAlphaValue: _end];
150
151
}, 0 , target, end);
151
152
@@ -165,7 +166,7 @@ var appendCSSValueToKey = function(/*DOMElement*/ anElement, /*CPString*/aValue,
165
166
var x = _end .x - _start .x ,
166
167
y = _end .y - _start .y ;
167
168
168
- _target ._DOMElement .style [" -webkit-transform" ] = " translate (" + x + " px, " + y + " px)" ;
169
+ _target ._DOMElement .style [" -webkit-transform" ] = " translate3d (" + x + " px, " + y + " px, 0px )" ;
169
170
170
171
// Need to match the new position with the actual frame
171
172
setTimeout (function (){
@@ -174,7 +175,7 @@ var appendCSSValueToKey = function(/*DOMElement*/ anElement, /*CPString*/aValue,
174
175
[self _clearCSS];
175
176
176
177
// Reset the translate
177
- _target ._DOMElement .style [" -webkit-transform" ] = " translate( 0px, 0px)" ;
178
+ _target ._DOMElement .style [" -webkit-transform" ] = " translate3d(0px, 0px, 0px)" ;
178
179
179
180
// Set the real frame
180
181
[_target setFrameOrigin: _end];
@@ -350,7 +351,7 @@ var appendCSSValueToKey = function(/*DOMElement*/ anElement, /*CPString*/aValue,
350
351
351
352
switch (aKey)
352
353
{
353
- case LPFadeAnimationKey: CSSValue = @" opacity" ;
354
+ case LPFadeAnimationKey: CSSValue = @" -webkit-transform, opacity" ;
354
355
break ;
355
356
356
357
case LPOriginAnimationKey: CSSValue = @" -webkit-transform" ;
0 commit comments