Making something appear and disappear with JavaScript is pretty simple. So simple in fact, we don't need anything fancy like jQuery. This is done with vanilla javascript only, using ES6.
We just have to add and remove a class, so as to change its display property, which is fairly simple to do.
This video sets the stage for the next one, where things get a bit more complicated to get it to fade in and out, instead of just jumping in and out.
Also, don't be mad at me because I don't use semi-colons in my JS :)
---
My Code Editor: VS Code - https://code.visualstudio.com/
How my browser refreshes when I save: • How to automatically refresh your bro...
---
Support me on Patreon: / kevinpowell
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Instagram: / kevinpowell.co
Twitter: / kevinjpowell
Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell