CHAPTER 17
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 ...
Get Web Developer's Cookbook 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.