Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
jQuery 1.4 Animation Techniques: Beginners Guide

You're reading from  jQuery 1.4 Animation Techniques: Beginners Guide

Product type Book
Published in Mar 2011
Publisher Packt
ISBN-13 9781849513302
Pages 344 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (19) Chapters

jQuery 1.4 Animation Techniques Beginner's Guide
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Introduction 2. Fading Animations 3. Managing Animations 4. Sliding Animations 5. Custom Animations 6. Extended Animations with jQuery UI 7. Full Page Animations 8. Other Popular Animations 9. CSS3 Animations 10. Canvas Animations Pop Quiz Answers Index

Sliding elements into view


When an element is hidden from view using display:none; we can easily show the element using the slideDown() method. This method may take the following form:

jQuery(elements).slideDown([duration], [easing] [callback]);

The optional duration argument may take either integer or string formats just like the animation methods we have already looked at, and the default duration of 400 milliseconds will be used when no duration argument is supplied.

As before, an easing function may also be supplied as the second argument, and a callback function, if supplied, will be executed once for each selected element once the animation has completed.

The slideDown() method works by changing an element's display property from none to block in the same way that fade animations do. If an element requires a different display mode, such as inline-block for example, this will need to be set using the optional callback function, or by using a nested element within the element that has slideDown...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}