I need some help with this JavaScript animation

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)