In this chapter we looked at the complete range of new effects which are added by the jQuery UI library. We looked at how they can be used with the effect()
method, or the show()
, hide()
, and toggle()
methods when necessary. We saw the configuration arguments that each effect takes, and their default values when used out of the box.
We also covered how jQuery UI extends the animation()
, addClass()
, and removeClass()
methods, and the switchClass()
method that it adds in order to add the ability to animate between colors and classes.
The key points to take from this chapter include:
jQuery UI together with jQuery can be downloaded using the jQuery UI download builder, which builds a custom package, complete with a theme if required for you to download.
jQuery UI adds a total of 14 new predefined effects to our animation toolkit. The effects are easy to use but highly configurable.
The
effect()
method is the basic means of specifying an effect, its configuration options, a duration, and...