4 ms·
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 happ
by beefsack 14y ago
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.
- tlrobinson 14y agoIt'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 http://codepen.io/tlrobinson/pen/aGvrF