JavaScript: My animation doesn't make the element start from the right position.

andybullet

AndyBullet

Posted on October 25, 2019

JavaScript: My animation doesn't make the element start from the right position.

Hi guys!
I wrote this code:
https://pastebin.com/cHfwEZB8
when I click "Movement" button, the element would have to start from the position in which it is now, and he have to go on right.
But when I click the button, the element teleports to another point before starting to move. Can you tell me why?

💖 💪 🙅 🚩
andybullet
AndyBullet

Posted on October 25, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related