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

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


You can rotate an image with CSS using the transform property with a rotate(**deg) value

.rotate-img {    -webkit-transform : rotate(90deg) scale(0.2); /* Chrome, Opera 15+, Safari 3.1+ */    -ms-transform     : rotate(90deg) scale(0.2); /* IE 9 */    transform         : rotate(90deg) scale(0.2); /* Firefox 16+, IE 10+, Opera */    left : -200px;    position: relative;}
<img class="rotate-img" src="https://appharbor.com/assets/images/stackoverflow-logo.png" />