Sprite animation with JavaScript

See the video