SUMMARY
jQuery Effects And Animations
There are nine (9) jQuery Effect methods broken up in three groups of three methods each:
- show() – will make an object visible IF it is not already shown on the page; otherwise nothing happens.
- hide() – will make an object invisible IF it is not already hidden on the page; otherwise nothing happens.
- toggle() – is the best of both worlds of the show() and hide() methods, in that it will TOGGLE the visibility based on the CURRENT visibility of an object on the page.
- fadeIn() – will make an object fade In IF it is not already shown on the page; otherwise nothing happens.
- fadeOut() – will make an object fade Out IF it is not already shown on the page; otherwise nothing happens.
- fadeToggle() – is the best of both worlds of the fadeIn() and fadeOut() methods, in that it will TOGGLE the fade based on the CURRENT visibility of an object on the page.
- slideUp() – will make an object slide Up IF it is not already shown on the page; otherwise nothing happens.
- slideDown() – will make an object slide Down IF it is not already shown on the page; otherwise nothing happens.
- slideToggle() – is the best of both worlds of the fadeIn() and fadeOut() methods, in that it will TOGGLE the slide based on the CURRENT visibility of an object on the page.
TIP: To avoid the mistake of writing "toggleFade" or "toggleSlide" instead of "fadeToggle" and "slideToggle" think of "Toggle with a capital "T" in the middle of the methods (fadeToggle, slideToggle).
There is only one (1) jQuery Animation method. However, there are a host of parameters that can be added:
- animate() – will animate an object using CSS properties name/value pairs.