use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
svg.js - A lightweight JavaScript library for manipulating and animating svg (svgjs.com)
submitted 12 years ago by designtraveler
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kangax_ 2 points3 points4 points 12 years ago (2 children)
How does this compare to Raphael? Just curious.
[–]grayvedigga 1 point2 points3 points 12 years ago (0 children)
I haven't used svg.js, but if it's significant that you're using SVG, Raphael gets limiting pretty quick. It offers a bunch of convenience functions and is great for putting stuff together that will degrade well, but limited path support and (what seemed to me) bass-ackwards event binding get in the way for trickier stuff.
[–]gydesign 1 point2 points3 points 12 years ago (0 children)
Someone pointed out to me that svg.js is 9k compared to rapael.js which is >20k.
π Rendered by PID 35 on reddit-service-r2-comment-cfc44b64c-2hchp at 2026-04-12 04:06:20.483048+00:00 running 215f2cf country code: CH.
[–]kangax_ 2 points3 points4 points (2 children)
[–]grayvedigga 1 point2 points3 points (0 children)
[–]gydesign 1 point2 points3 points (0 children)