12

2D TRANSFORMATIONS

Image

Because of the way HTML works, with each element composed of rectangular blocks and right-angled corners, web pages have traditionally appeared boxy, with lots of straight horizontal and vertical lines, and the only way to provide any variation to this rule was to use images. But back in 2008, the WebKit team proposed a new module that allows elements to be rotated, scaled, skewed, and generally messed around with. This module was adopted for standardization by the W3C and formalized as the 2D Transformations Module (http://www.w3.org/TR/css3-2d-transforms/).

Much of the process for transforming elements was adapted from ...

Get The Book of CSS3, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.