http://canvimation.github.com/ is an open-source application that allows you to draw graphics on screen and export the results as a webpage using the canvas tag and context commands to reproduce the drawing. There is some animation available. It is under development. Help pages are also available.