( JS ANIM ) Why is the box not going right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

( JS ANIM ) Why is the box not going right?

I am trying to make the box (eye picture) inside the container (iluminati picture) go left > down > right > up, but it isn't working. Help please, ty. https://code.sololearn.com/WQ6ed0Pr7s9d/?ref=app

11th May 2020, 8:45 AM
Muhammad Varel
Muhammad Varel - avatar
1 Answer
+ 1
Your code is fine, it has few mistakes like initializing variable on line 37 and 51. I tried to write your code in better way. https://code.sololearn.com/WHh8PsJCl71q/?ref=app
11th May 2020, 9:20 AM
Raj Chhatrala
Raj Chhatrala - avatar