A CodePen by Stephen Tudor. CSS toggle switch - Just add the class 'active' to make the switch transition to ON state, remove to return to OFF state.