4 ms·
CSS Triangles + Animations = Pie Chart Spinner
- cheald 15y agoI did something similar to this a couple of months ago, but I did a few variants of it: http://coffeepowered.net/projects/timer.html http://coffeepowered.net/projects/timer.html I think I used two half-circles plus a half-circle mask for mine.
- onto 15y agoReminds me of the olden days of IE. The times when some scripts only worked in IE.
- phuu 15y agoI know what you mean – I totally don't intend this for production, I just did it for the sake of doing it. When/if I write a tutorial I'll do it properly and be a good web citizen.
- chc 15y agoThis reminds me of the last time a tech demo got posted to HN and somebody pitched a fit because the bare-bones demo didn't work in NCSA Mosaic. It's just a demo, people. Not production, not even beta, not even a product — a demo. Don't be haters.
- deleted 15y ago[deleted]
- leeoniya 15y ago"needs webkit [or Opera.Next]"
- mcot2 15y agoWouldn't this be better using SVG or canvas? I'm not sure I like CSS for this type of thing.
- randomfool 15y agoAgree- SVG probably has broader support than CSS animations and you can create something much better. I'm really curious about the lack of love for SVG.
- rorrr 15y agoFails in IE9, Firefox 12, Opera 11.62. Looks different in Chrome 18 and Safari 5.1.5 (not sure which one is correct).