Book Image

Mastering jQuery

By : Alex Libby
Book Image

Mastering jQuery

By: Alex Libby

Overview of this book

<p>Mastering jQuery has been written not only to help maximize your skills with core functionality in the library, but also to explore some of the more intriguing ways of using the library to achieve real-world solutions that could feature on any website or online environment.</p> <p>You'll start with a look at some of the more advanced ways to incorporate the library into your pages, followed by working with forms and advanced form validation using regular expressions. Next you'll move on to animating in jQuery, advanced event handling, and using jQuery effects.</p> <p>Finally, you will develop practical examples of using jQuery with external functionality such as node-webkit, before finishing with a session on optimizing your version of the library for maximum efficiency and exploring best practices for using QUnit.</p>
Table of Contents (21 chapters)
Mastering jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing easing functions


When animating any object or element on a page, we can simply slide it up or down or move it from one place to another on the page. These are perfectly valid effects, but they lack the realism you might get when opening a drawer, for example.

Animations don't always move at a constant speed; instead, we might get a little bounce back if we were bouncing a ball or a slow down when opening a chest of drawers. To achieve this effect, we need to use easing functions, which control the rate of change. There are plenty of examples available on the Internet—a great place to start is http://www.easings.net—or perhaps we can watch the effects on sites such as http://matthewlein.com/ceaser/. Over the next few pages, we're going to explore these in more detail and look at tips and tricks that we can use to push our animation skills to a new level.