Okay, let's talk about sliding up and sliding down.
Real easy here this is a lot like fade in and fade out.
So I have a button here is registered as a click event.
And I want to slide this box up and slide it down.
So like an FAQ question,
a frequently asked question section on a website and FAQ.
So we can select this box whenever the button is clicked.
And we could say slide down or we can say slide up.
So let's first of all, slideUp,
slide up is going to hide it.
Refresh.
It, slides it up.
Pretty neat, right?
We could also do slide down,
which is just going to slide it down and make it visible.
Or we can slide toggle and that's going to toggle it to slide up and slide down.
So let's go ahead and refresh.
Up, down, up, down.
So this is a short lesson.
Honestly, at this point you probably don't need to practice this anymore.
Just keep this tucked away in your back pocket.
Slide toggle.
You can slide up and you can slide down.
You're going to use this one more than a fade in and fade out for sure.
So if you want a little bit of experience, yeah,
definitely go and create an example like this.
You can even just steal my example here.
Otherwise, I'll let's head on over to
the next lesson where we talk about callback functions.