I am trying to animate 2 elements that exist on top of each other, but are rotated 180 degrees to form a card with a back and a front. After the animation completes the elements are blurry. This is what the css transform is upon inspection:
transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.002, 0, 0, 0, 1);
When I adjust the -0.002 to be 0 in the inspector, voila! The element is crisp and clear.
Here is the code I am using to animated the elements (node is the element)
animateIn: function() {
TweenLite.to(node, .3, {opacity: 1, rotationY: 0, ease: Linear.easeNone});
}
animateOut: function() {
TweenLite.to(node, .3, {opacity: 0, rotationY: -180, ease: Linear.easeNone});
}
Is the animation just not completing? Any insight as to how to fix this?
NOTE: I've included a codepen url of the exact effect I am trying to achieve, and one where the rotation animations successfully complete. When they work I imagine
transform: matrix(1, 0, 0, 1, 0, 0);
is what will be applied to the style attribute.
Thanks,
Zach