Code problem | Sololearn: Learn to code for FREE!

+4

Code problem

Can someone explain why this code doesn’t animate the first block? https://code.sololearn.com/WiIupLb972zy/?ref=app

10/18/2018 9:49:38 PM

Zachary Burkholder

2 Answers

New Answer

+4

Use box.style.marginLeft instead of box.style.left. In order to left to work the elements needs a position.

+4

Thanks alot!!