News for hackers. Stuff that matters.
Re:Donuts.css by beefsack on Sunday March 03, 2013 @06:22PM (#5315654)
Having a tiny bit of JS and having no JS at all is worlds apart. I edited the DOM in my inspector to try to add arrows and change percentages, but nothing happened after I injected new elements.

Had this been entirely in CSS, it would have automatically rendered immediately after modifying the DOM.

Re:Donuts.css by tlrobinson on Sunday March 03, 2013 @07:22PM (#5315798)
It's not really possible to do what you want to do (at least not without generating a CSS rule for every possible percentage value), but you can get damn close by calculating the right rotation (apparently "percent * 1.8 - 90") and setting the "transform" properties yourself.

EDIT: here's a "pure CSS" version: http://codepen.io/tlrobinson/pen/aGvrF