Hacker News new | past | comments | ask | show | jobs | submit login

> Canvas doesn't support animation -- you have to code it yourself.

What do you mean?




The obvious. That canvas is just a set of pixels with colors (a bitmap image). To get animation, you have to explicitly change them every X milliseconds.

Whereas SVG has actual objects, that you can apply items like animateTransform, animateMotion etc to them directly, in a declarative style.


Ok, thanks. I didn't know that. I thought you had to clear/redraw the SVG for animation as well.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: