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

Similar to http://codepen.io/smt/pen/oywvG, but uses a checkbox input rather than a link, which removes the JS requirement.

This doesn't really work cross-browser, of course, and uses content properties in ::after pseudo-elements.