slideUp() method allows us to slide an element up rather than down.
In order to achieve this effect, we can make a few minor adjustments to the script we created in the last lesson.
Just change the
slideDown() action to
Also remove the
display: none; property so that the panel is visible on page load.
Now refresh your browser to see the effect.