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

Time for action – showing and hiding with fadeToggle()


As before, we first create the HTML markup and CSS styling required by the example.

  1. Open up a new copy of the template file and add the following code to the <body> of the page:

    <form>
      <label for="name">Enter your name:
        <input id="name" name="name" type="text">
        <span id="help"></span>
        <span id="helpText">Your name. You know, the thing that people call you by</span>
      </label>
    </form>
  2. Save this page as fadeToggle.html. Next we need to add a few styles. In a new page in your text editor, add the following code:

    form { width:280px; margin:100px auto; position:relative; }
    input { margin-left:5px; }
    #help {
      display:block; width:16px; height:16px; margin-top:3px;
      float:right; cursor:pointer;
      background:url(../img/help.png) no-repeat;
    }
    #helpText {
      display:none; width:100px; height:75px; padding:12px 18px;
      position:absolute; left:115px; top:-90px;
      font:normal...
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}