CAKE, not a cake ...
javascript animation
May be , can you do this in a YACS page, javascript embedding ...
about:
"CAKE is a scenegraph library for the canvas tag. You could say that it's like SVG sans the XML and not be too far off. This page is a showcase of CAKE feature tests."
Here : CAKE editable curve
Great things of Mr Ilmari Heikkinen