That's pretty cool I was just about to make a write up of how to make a css dropdown mega menu, which is sort of semi-related in principle. I didn't find any good examples on codepen so I ended up writing my own.
I made a crude mockup here in PUG / SASS to cover just the essential "hello world" concept.
[link redacted]
A revised version
[link redacted]
and then an actual template for an ecommerce site I'm building
[link redacted]
I try to avoid JS if CSS can do the same job, because then I have the oppurtunity to change it much easier later.
the above examples uses no css frameworks or javascript libraries
I made a crude mockup here in PUG / SASS to cover just the essential "hello world" concept.
[link redacted]
A revised version
[link redacted]
and then an actual template for an ecommerce site I'm building
[link redacted]
I try to avoid JS if CSS can do the same job, because then I have the oppurtunity to change it much easier later.
the above examples uses no css frameworks or javascript libraries