O'Reilly logo

Web Developer’s Cookbook: More Than 300 Ready-Made PHP, JavaScript, and CSS Recipes by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 17
image
Chaining and Interaction
In this chapter, I’ll show you how you can chain together many of the JavaScript recipes in this book to form sequences of actions or animations. These can be animations you write to create stunning opening effects, or they can be small chains to perform simple actions such as moving menu elements.
Chaining is also useful for ensuring that one action will follow another. This can be very hard to do in JavaScript because it is event-driven, and therefore recipes called at the same time will normally run in parallel with each other. However, by adding what is known as a callback function at the end of many of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required