need to read about animations

http://javascript.info/tutorial/animation