jQuery has a nice selection of core animation effects, such as
.fadeOut(). It even has a couple methods for toggling effects â€” the aptly named
All of these methods have optional speed, easing, and callback arguments — although a couple are special cases. The
.hide() methods, when used without a speed, will immediately show and hide the matched set of elements with no animation. When the speed argument is included, the matched elements are shown and hidden gradually by animating their height, width, and opacity simultaneously. The
.toggle() method shares its name with a method that takes two arguments that alternate being triggered. All of the other effect methods have a default speed of 400ms.