This isn't really an animation (as this term is used for canvas) because it just shows different bitmaps created with a program. The animation here is just to show all these pictures in a time frame.
To produce these pictures you have to provide this external program and call it yourself (eventually in the animation callback loop, demo: http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-animation-tutorial/ ).
I don't know if you can use gimp or some other program to create the images, I never did that myself.
Also, I don't know about a javascript library which can do that.
If you have a fixed animation sequence in mind (like in the video link you provided) you could just make a video or an animated gif instead and forget all the canvas voodoo.