In jQuery, the slideUp()
method is used to slide an element up in the jQuery collection.
(a).slideUp(b, c)
a
is 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 be slow
or fast
.
c
(optional) is the callback function that gets called once the sliding is over.
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.