Excellent javascript tutorials:

http://javascript.info/

Animation tutorial from this page:

http://javascript.info/js-animation