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 to 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 easily define custom animations that can be as complex and as specialized as the task at hand requires. 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 include:
Creating custom animations with the
animate()
methodPassing arguments to the method
Animating an element's dimensions
Animating an element's position
Creating a jQuery animation plugin
Using the jQuery plugin we created