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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Download from Wow! eBook <br />

});<br />

});<br />

$(this).prev().removeClass("on");<br />

[ 81 ]<br />

Chapter 4<br />

This code should appear within the outer anonymous function, but after the click handler for<br />

the login link. Now we can close the form while it is opened by clicking the new cancel link.<br />

When this event occurs, we should see the reverse <strong>of</strong> the opening animation:<br />

The animation still proceeds from top to bottom, but this time the form ends up hidden<br />

when the Cancel link is clicked.

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

Saved successfully!

Ooh no, something went wrong!