Book Image

jQuery 2.0 Development Cookbook

By : Leon Revill
Book Image

jQuery 2.0 Development Cookbook

By: Leon Revill

Overview of this book

Table of Contents (17 chapters)
jQuery 2.0 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating an animated navigation menu


Your website's navigation allows your visitors to easily find the content hosted on your site. Providing the user with a fun and interactive navigation menu that is also easy to use can make a lasting impression on them. This recipe shows you how to create a modern animated navigation menu.

Getting ready

Create recipe-5.html, recipe-5.css, and recipe-5.js in the same directory as the latest version of the jQuery library.

How to do it…

Perform all of the following steps to create a unique and modern animated navigation menu for any site:

  1. Add the following HTML to recipe-5.html to create the basic web page, and include the newly created files along with the jQuery library:

    <!DOCTYPE html>
    <html>
    <head>
       <title>Chapter 7 :: Recipe 5</title>
       <link href="recipe-5.css" rel="stylesheet" type="text/css" />
       <script src="jquery.min.js"></script>
       <script src="recipe-5.js"></script>
    </head>
    &lt...