02.06.2013 Views

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9<br />

CSS3 <strong>Animation</strong>s<br />

CSS3 brings many impressive new styles to the web-development arena, and<br />

even though the specification is far from complete, many aspects <strong>of</strong> it are being<br />

used in the latest browsers. Pure-CSS animation may even make it into the<br />

specification at some point, and although at the time <strong>of</strong> writing few browsers<br />

support this, with a little help from <strong>jQuery</strong> we can create our own CSS3<br />

animations that work with varying degrees <strong>of</strong> success, across most<br />

common browsers.<br />

In this chapter, we'll be covering the following topics:<br />

The different CSS3 transforms available<br />

Animating an element's rotation<br />

Using the CSS3 transforms matrix<br />

Animating an element's skew with <strong>jQuery</strong><br />

For further information on CSS3 2D transforms, see the W3C Working Draft<br />

specification at http://www.w3.org/TR/css3-2d-transforms/.<br />

CSS3 2D transforms<br />

CSS3 defines a style property called transform which allows us to transform targeted<br />

elements in a two-dimensional space along x and y axes. A range <strong>of</strong> transform functions can<br />

be supplied as the value <strong>of</strong> the transform property, which dictates how the transformation<br />

should be applied.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!