Chapter 3
Animating jQuery
In This Chapter
Hiding and showing elements with jQuery
Fading elements in and out
Adding a callback function to a transition
Element animation
Object chaining
Using selection filters
Adding and removing elements
The jQuery library simplifies a lot of JavaScript coding. One of its best features is how it adds features that would be difficult to achieve in ordinary JavaScript and DOM programming. This chapter teaches you to shake and bake your programs by identifying specific objects, moving them around, and making them appear, slide, and fade.
Playing Hide and Seek
To get it all started, take a look at hideShow.html shown in Figure 3-1.
Get HTML5 and CSS3 All-in-One For Dummies, 3rd Edition 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.