Skeumorphism 3D Switch

A big chunk of my pens on Codepen showcases how powerful CSS is when it comes to styling. This pen is an example of that, and something you'd normally create with an image or a SVG

What is this
A Codepen
~ October 2019
Languages used

I created this pen a couple of years ago and it's one of mye favorite. There was a time when I was really into creating 3D-looking stuff with CSS and experimenting with shadows. I don't think I would be able to do something like this now.

See the Pen Switch | CSS only by Håvard Brynjulfsen (@havardob) on CodePen.