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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5<br />

Custom <strong>Animation</strong>s<br />

The predefined effects that we have looked at throughout the book so far<br />

are very good at what they do, but they are there to cater for very specific<br />

requirements and will sometimes not be enough when more complex<br />

animations are needed.<br />

In these situations we can use <strong>jQuery</strong>'s animate() method, which allows us to<br />

define custom animations with ease that can be as complex and as specialized<br />

as the task at hand requires, and this is what we'll be looking at over the course<br />

<strong>of</strong> this chapter.<br />

Subjects that we'll cover throughout the course <strong>of</strong> this chapter will include:<br />

Creating custom animations with the animate() method<br />

Passing arguments to the method<br />

Animating an element's dimensions<br />

Animating an element's position<br />

Creating a <strong>jQuery</strong> animation plugin

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

Saved successfully!

Ooh no, something went wrong!