Answer the question
In order to leave comments, you need to log in
How to add another Transform?
I am using Scss. For one class, I already have a Transform property. For almost the same, but modified, I need to add additional transformations to it. How to do it without using repetition?
<div class="block1">
<div class="block1__elem block2 block2--mod">
...
</div>
</div>
.block1 {
&__elem {
transform: scale(1.1);
}
}
.block2 {
&--mod {
transform: rotate(90deg); //заменяет, а мне нужно использовать вместе с прошлым
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question