8 ms·
Donatello, a pure CSS drawing library
- richbradshaw 15y agoBearing in mind that all browsers (in common use) that support border-radius and gradients, also support SVG and canvas, and that SVG and canvas let you do more, are generally more performant, and have fallbacks (SVG particularly) in older browsers, why would you use Donatello?
- huskyr 15y agoAFAIK, on iOS CSS (especially when using transforms) is a lot faster because it's hardware accelerated.
- ryanpetrich 15y agoOnly when using transforms and only when using 3D transforms (though iOS5.0 may support hardware accelerated 2D transforms as well)
- rjett0 15y agoYou can hardware accelerate 2D transforms on iOS. You just do a -webkit-transform: translateZ(0); and it puts the element in the compositing layer.
- ryanpetrich 15y agoYes, that is a 3D transform.
- knowtheory 15y agoThis whole ninja turtles thing is going to get out of hand. I already know of at least one other Donatello library based on Raphael.js which does something different. https://github.com/postmodern/donatello https://github.com/postmodern/donatello You couldn't have picked a different ninja turtle?
- endtwist 15y agoDonatello (the person) was a renowned artist and sculptor: http://en.wikipedia.org/wiki/Donatello http://en.wikipedia.org/wiki/Donatello
- knowtheory 15y agoThanks i'm aware of my Renaissance art, but the things that connected Donatello the artist to Raphael the artist is being italian and a gap of nearly 20 years, in the reverse order you would think, given that there are now two derivative libraries built on Raphael named Donatello. The ninja turtles connection is, even if you were talking about the artists, the more likely link :P
- 0x12 15y ago> The ninja turtles connection is, even if you were talking about the artists, the more likely link :P I know about Donatello, that ninja turtles thing has fortunately passed me by. If you hadn't mentioned it I had never known there was such a thing as a 'donatello ninja turtle' and now I need to purge my storage of this utterly useless factoid.
- knowtheory 15y agoI don't appreciate the downvote. I've pointed out a nomenclature issue, pointed out why i think it's a bad choice. If you disagree with me, fine. But this isn't reddit. Defend your point instead.
- 0x12 15y agoYour problem with downvotes is yours, if you don't want to risk being downvoted you should probably not comment here. It happens. This 'not being reddit' (or slashdot for that matter) has nothing to do with it. Downvotes are a way to push non-relevant comments to the bottom of the discussion. And I really believe this ninja turtles stuff is a waste of space, I frankly don't have any desire to see stuff like that on HN. As for my point, I think enough bits and unique ids have been wasted explaining it, if you wish to hold on to your position that the ninja turtles are the first thing that comes to mind when you hear Donatello that is entirely your problem.
- yesbabyyes 15y agoThis looks cool, you might be able to use move.js for the animations: http://visionmedia.github.com/move.js/ http://visionmedia.github.com/move.js/
- my8bird 15y agois it possible to have things called pure CSS actually be pure CSS. this is definitely a JavaScript library that uses CSS, nothing more
- sevenproxies 15y agoIts pure CSS in the same way most pure 'HTML5' demos are
- okal 15y agoI have to admit, I was also slightly irritated when I actually checked out the repo. The title is deceptive. "Donatello, a JS drawing library" - which is what it is - would probably not rack up as many points. Interesting tool, I hope to check it out sometime, but the OP should have been a little more honest. Just call it what it is.
- jQueryIsAwesome 15y agoThe title inside the main file is a little more honest: "A pure CSS vector drawing library" meaning that the vectors created are CSS only (not Canvas).
- rorrr 15y agoIt produces CSS. It should probably have HTML+CSS export, then it won't need Javascript.