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

Adding filters using CSS3


Filter support has been available for some time, at least within the major desktop browsers, although we still need to use the -webkit- vendor prefix support, as we are not yet entirely prefix free:

Note

Information about the preceding image is taken from the CanIUse website, at http://caniuse.com/#feat=css-filters.

The beauty about using these methods is that they are very simple to apply; we're not forced to spend hours reworking images if clients decide to change their minds! We can apply and remove the styles using jQuery with ease, which helps keep the styles separate from our markup.

Manipulating images can get very complex – in fact, to cover the math involved, we could probably fill a book in its own right! Instead, we'll begin with a simple recap of using CSS3 filters, before moving onto creating more complex filters, and finishing with a couple of demos that help capture images from two unlikely sources.

Intrigued? All will become clear towards the end of this...