I have div, and the css is like below
.container {
width: 100%;
height: 100%;
transition: 0.5s;
transform-style: preserve-3d;
transform: rotateY(0deg) translateZ(-404.747px);
}
and now, I want use jQuery to change the transform property to
transfrom: rotateY(-40deg) translateZ(-404.747px);
if I use
$('.container').css('transform', 'rotateY(-40deg) translateZ(-404.747px)');
then 'translateZ(-404.747px)' will take action again. So, my question is how can I change the value of rotateY(), without change the 'translateZ()' ?