Summary

While manipulating an element's fx queue directly may not often be required, when we do need to work with it, jQuery makes the process easy and transparent. With a collection of methods at our disposal, we can have full control over how the queue behaves. In this chapter, we looked at the following methods:

  • clearQueue()
  • delay()
  • dequeue()
  • queue()
  • stop()

We also looked at the following properties of the jQuery object:

  • jQuery.fx.off
  • jQuery.fx.interval

In this chapter we found that:

  • The contents of the queue and the number of items in the queue can be easily obtained using the array that's returned by the queue() method. We can also use standard JavaScript array methods, such as push() or pop(), to interact with the array.
  • We can supply different arguments ...

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.