What am I doing wrong here with this simple JavaScript animation

Printable View