Currently I'm using the following code to translate both x and y at the same speed:
-webkit-transition:all 180ms ease-out;
I would like to translate the X axis slower than the Y. Is it possible to specify something similar to:
-webkit-transition:translateX 180ms ease-out;
-webkit-transition:translateY 50ms ease-out;
Thanks in advance!
Sad but true: you can't use different timings for different parts of transform
since it's now only one property and cannot be spliced.
The only things you can do:
translate
only for one axis, and use the positioning for another (like top
or left
). Doing so you could attach different timings.transform
s on them. It would take more code, but would be helpful if you'll need the GPU acceleration.No other ways for us :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With