Summary

In this chapter, we looked at some common usages of the animate() method, which is the means for us to create custom animations in jQuery when the built-in effects are not enough for our requirements. The method is robust, easy to use, and makes complex animations trivial.

When simple sliding or fading does not meet our requirements, we can fall back onto the animate() method in order to craft our own high-quality custom animations. We learnt the following points about the method:

  • The animate() method can be used to animate any numeric CSS property (except colors, for which a separate plugin is required).
  • The arguments passed into the method may take one of two formats. The first allows us to pass in an object containing the CSS properties ...

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.