CSS Animated Slide Toggle
jsfiddle.net
jsfiddle.net
Nonetheless, nice work on theming a native checkbox so well. I'd love to use it if it were cross-browser compatible.
It looks like it's relying on the webkit-only "-webkit-appearance" property, as you can see here: http://jsfiddle.net/DArcMattr/uhwQp/1/show/
edit: added an attempt at making it cross-browser
But I think the [x] or [ ] of a normal checkbox are more intuitive than two different colors that may have different meanings in other cultures/countries (and I am not even starting about color blindness).
This specification does not fully define the interaction of :before and :after with replaced elements (such as IMG in HTML). This will be defined in more detail in a future specification.
http://www.w3.org/TR/2011/REC-CSS2-20110607/generate.html#be...In my opinion it would be cool if all browsers supported it.
somehow it makes the browser render the checkmark behind the checkbox, you can barely see the end of the mark.