Home › CSS Tutorial › CSS 2D transforms
CSS 2D transforms
Move, rotate, scale, skew.
translate(), rotate(), scale() and skew() change how an element is drawn without moving others.
Example code
<style>
div{display:inline-block;width:70px;height:70px;background:#2e86de;margin:30px;color:#fff}
</style>
<div style='transform:rotate(20deg)'>Rotate</div><div style='transform:scale(1.4)'>Scale</div><div style='transform:skew(20deg)'>Skew</div>