02.06.2013 Views

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

jQuery 1.4 Animation Techniques - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2<br />

Fading <strong>Animation</strong>s<br />

In this chapter we'll be looking at the most basic types <strong>of</strong> <strong>jQuery</strong> animations, in<br />

which the element being animated gradually appears or disappears. There are<br />

several <strong>jQuery</strong> methods that deal with fading and we'll look at each <strong>of</strong> them in<br />

turn throughout the chapter. These methods are:<br />

fadeIn()<br />

fadeOut()<br />

fadeTo()<br />

fadeToggle()<br />

show()<br />

hide()<br />

toggle()<br />

In this chapter, we will learn:<br />

How to create simple animations with the fadeIn(), fadeOut(), and<br />

fadeToggle() methods<br />

How to control the ending opacity value <strong>of</strong> the animation with the<br />

fadeTo() method<br />

How to create fading animations with the show() and hide() methods<br />

How to simplify our code with the toggle() methods

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!