Chapter 3

Animating jQuery

In This Chapter

arrow Hiding and showing elements with jQuery

arrow Fading elements in and out

arrow Adding a callback function to a transition

arrow Element animation

arrow Object chaining

arrow Using selection filters

arrow 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.

9781118289389-fg3901.tif

Figure 3-1: This page ...

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.