The Animation utility is used to add a variety of effects to your pages that can really bring your web application to life. It's a very easy component of the library to use, but delivers a powerful and robust mechanism by which elements can be made to grow, move, and even change color.
When using web-based applications that are based on DOM-scripted or AJAX-driven dynamic page changes, it is usually impossible to return to a previous page state using the back button of the browser. The Browser History Manager (BHM) utility provided in the YUI is the first step towards a web of online applications where the functionality of the back and forward browser buttons has been restored.
In this chapter we will look at:
Enhancing our pages with attractive animations
Why the BHM is needed and how it can be implemented
The different components of the BHM
Recording state changes
Retrieving bookmarked state