What is the slideUp method in jQuery?
In jQuery, the slideUp() method is used to slide an element up in the jQuery collection.
Syntax
(a).slideUp(b, c)
-
ais the element to be acted upon. -
b(optional) is the speed parameter. It is used to specify the duration of the event; it can be in milliseconds or either besloworfast. -
c(optional) is the callback function that gets called once the sliding is over.
Code
In the code below, the text "Learn tech-related contents easily and at your own pace!" gets hidden as it slides up once the Slide Up button is clicked.