Before we round up this chapter, it's worth pausing for a moment to consider the implications of some of the techniques that we've covered in this chapter.
The purists may question the need to use jQuery to apply filters, particularly if all we need to do is to use a method such as .addClass()
or even .toggleClass()
to apply or remove a specific filter. The flip side of this is that this book is of course about jQuery, and that this is what we should concentrate on using, even at the cost of the apparent delay in showing some of the filter effects we've used.
The short answer to this will depend on you – anyone can write jQuery code to a greater or lesser extent, but the difference between an average and a good developer is not just in writing code.
The real difference lies partially in making the right choices. jQuery is frequently seen as the easy option, particularly as it provides the widest range of support. We can create any kind of filter to fit our needs, but it is always...