HTML and CSS Reference
In this screenshot, the original posi-
tions of the elements have been
drawn in so you can more easily see
that each element is rotating around a
different reference point.
The skew functions allow you to create perspective-like effects. Hori-
zontal skewing is achieved with skewX and vertical with skewY :
It's also possible to move elements around on the page with translateX
and translateY :
Note that transforming elements doESn't affect the rest of your
layout; everything else remains in the place it would be if the there
was no transform. Transforms can be combined to create interesting
effects. In the following example, the three example elements have been
transformed into a pseudo — 3D cube using skew, rotate, and translate.