szynszyliszys / repaintless

Library for fast CSS Animations
http://szynszyliszys.github.io/repaintless/
MIT License
963 stars 46 forks source link

translateZ ? #5

Open crazy4groovy opened 6 years ago

crazy4groovy commented 6 years ago

Nice lib!

Just wondering if you've found any use case for translateZ() ? or translate3d() for that matter?

equinusocio commented 6 years ago

Translate Z is required to move an elements among the Z axis. It is differente from scaling an element and it trigger the GPU acceleration. A use case can be an animation like this: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translateZ