Explanation: This CSS declaration (transform) allows you to style elements in a manner which would formerly have been done with images. We can scale and rotate elements (images or text).

Parameters (not complete, just more commonly used):

  • rotate (angle)
  • scale (number)
  • scaleX (number)
  • scaleY (number)
  • skewX (angle)
  • skewY (angle)

Example CSS code:

#orchid {
-webkit-transform: rotate(45deg);

Example page (view the source code): (mostly works in modern browsers).


Leave a Reply

Your email address will not be published. Required fields are marked *