Photo by Jez Timms on Unsplash

Just coming back from the last course I gave and I was asked how to make a sidebar for a website, so here it is.

A few things to keep in mind:

3 lines of Vanilla Javascript (no library, no ugly stuff)

An HTML template made of three nodes only

No more than 35 lines of CSS (you could reduce drastically)

There really is nothing hard

I’ll provide you with interactive demonstrations and the whole code, so that you can implement one very simply.