A fancy toggle switch that changes color on each click, designed by Alex Shevlyakov.
If you are having trouble with the pen, try the archived copy on GitHub
Colour Changing Toggle Switch Snippet
See the Pen Realistic toggle button by Alex (@AlexJedi) on CodePen.0