I have a image which i would like to animate on my web page.
Currently i am using a gif.
http://dev.thepenline.com/TEMP/Hol_10_swingingBell.gif
I would like to have more control on its animation, which js lib/framework would be best to help me out?
Should i use canvas or SVG?
Which (small) library is best to use?
I happen to know a little raphael.js
But i am not sure how to get this effect done.
I’ve done something with SVG that’s close to what you’re trying to achieve: http://live.echo-flow.com/stackoverflow/clock.svg
In case I ever take the example down, here’s the relevant code.
clock.svg:
clock.js: