Elements can also be shown and revealed via the slide functions. A common use case for this feature is when, for example, you have a message to display to the user that can be dismissed once read.
slideUp()
: animates the height of the matched elements to 0 (or whatever CSS min-height is set to). When the animation finishes, thedisplay
CSS property of the element is set to 'none' to remove the element from the page layoutslideDown()
: animates the height of the matched elements to reveal themslideToggle()
: toggles the state of the matched elements, either sliding them up or down depending on their current state