I have two classes where each of them has a transform, how I can to combine them? I know I can do "transform: transform1, transform", but in this case I have them in different clases and the second replaces the first.
I can't use JavaScript.
Thank you!
Add example: https://codepen.io/anon/pen/BmwrgY
.class1,
.class2 {
width: 20px;
height: 20px;
background-color: blue;
}
.class1 {
transform: rotate(45deg);
}
.class2 {
transform: translate3d(50px, 50px, 0);
}
<div class="class1"></div>
<div class="class2"></div>
<div class="class1 class2"></div>