You can add a 3d transform value to null in addition to your 2d transform value:
el { transform: 2DValue(val) 3DValueSetToNull(0); transform: 2DValue(val); }
Which one of the real CSS can do something like:
div { transform: rotate(90deg) translateZ(0); transform: rotate(90deg); }
Be sure to use a 3D transform value that will not interfere with your 2D transform value.
PS: 3D conversion values:
- translate3d (x, y, z)
- translateZ (g)
- scale3d (sx, sy, sz)
- scaleZ (SZ)
- rotateX (angle)
- rotateY (angle)
- rotate3d (x, y, z, angle),
- perspective (p)
- matrix3d (...)
source share