Chapter 5. Custom Animations

The predefined effects that we have looked at throughout the book so far are very good at what they do, but they are there to cater for very specific requirements and will sometimes not be enough when more complex animations are needed.

In these situations we can use jQuery's animate() method, which allows us to define custom animations with ease that can be as complex and as specialized as the task at hand requires, and this is what we'll be looking at over the course of this chapter.

Subjects that we'll cover throughout the course of this chapter will include:

  • Creating custom animations with the animate() method
  • Passing arguments to the method
  • Animating an element's dimensions
  • Animating an element's position
  • Creating ...

Get jQuery 1.4 Animation Techniques Beginner's Guide 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.