Hands up who like a static website? Thought not, animating a website gives it life; overdoing it can be disastrous!
Two common effects we frequently use to help breathe life into any website are AJAX and animation; we covered the former in detail back in the previous chapter. In this chapter, we'll take a look at when to use jQuery over CSS (or vice versa), how to manage queues better, and how to implement some slick custom animation effects. You'll also see how you can easily create some useful custom-easing effects, as a basis for converting them to CSS equivalents at some point in the future. In this chapter, we'll cover the following topics: