CSS3: How to rotate and scale an img at the same time?

后端 未结 4 673
-上瘾入骨i
-上瘾入骨i 2021-02-06 22:03

I\'m very confused. Why can\'t I use scale and rotate at the same time? I\'ve tried this, but it does not work:

.rotate-img{
    -webkit-transform:scale(2,2);
           


        
4条回答
  •  感动是毒
    2021-02-06 22:37

    You do not need to write code separately to use both rotate and scale u can use it look like this :

    transform: scale(1.3) rotate(7deg);

提交回复
热议问题