This is a beautiful toggle switch animation that morphs into a cross or tick with a smooth animation. Designed by Nikolay Talanov
If you are having trouble with the pen, try the archived copy on GitHub
See the Pen Colorful Switch (CSS Only) by Nikolay Talanov (@suez) on CodePen.0