slideUp() Method


The slideUp() method is used to hide elements by sliding them upward.

It gradually reduces the height of the element until it disappears.

This effect is commonly used in accordion menus and collapsible sections.

This hides the element using default slide animation.

This slides the element upward over 500 milliseconds.

Predefined speed values such as slow or fast can be used.

slideUp() Method Notes:

  • Hides elements vertically
  • Reduces height gradually
  • Common in dropdown UI
  • Supports speed parameter