4 ms·
Using JavaScript to render to a canvas will work in all modern browsers, while maintaining (or even enhancing) the CSS's flexibility. I first thought the JavaSc
by pharrington 15y ago
Using JavaScript to render to a canvas will work in all modern browsers, while maintaining (or even enhancing) the CSS's flexibility. I first thought the JavaScript solution would even be about the length of Moeed's CSS, but after writing it out my code's about 5x longer :(
edit: here's a jsfiddle of it in action http://jsfiddle.net/MftVp/ http://jsfiddle.net/MftVp/
- epicureanideal 15y agoWith jQuery I doubt it would be 5x longer.
- udp 15y agojQuery doesn't provide anything that would make the above code shorter.