Closed wesselgrift closed 9 years ago
Yeah you need to provide the translateX is the second animation as well. Every transform property (translateX, translateY, rotate,...) is combined to transform
, so if you don't pass the other attributes, we assume they're meant to be 0.
I'm animating a div block to the center of the screen. I've calculate the amount of pixels it should move to the left with translateX. It works. But, when the next animation on that element begins, it snaps back to its original position. The translateX is overwritten or something when 'fade card out' begins, it doesn't stay center screen.
How can I fix the position of this element after i've animated it?