+ 2

Whats the problem with this code

I used js only ,a small error cause this to animate like this.... feels so funny https://code.sololearn.com/WpfG9Lwnu6F8/?ref=app

20th Mar 2018, 2:46 AM
Diluuu
Diluuu - avatar
3 Answers
+ 3
Each time you click within the document you start another interval timer. Your HTML button onclick string isn't valid. It should call a function or have some valid statement.
20th Mar 2018, 3:26 AM
John Wells
John Wells - avatar
0
Your CSS is /* Created by ravindra patel */ #container { width:100%; height: 200px; background:#991100"; position: relative; } #box { width: 50px; height: 50px; background: #556688; position: absolute; } But, It sould be this /* Created by ravindra patel */ #container { width:100%; height: 200px; background:#991100; position: relative; } #box { width: 50px; height: 50px; background: #556688; position: absolute; }
5th Oct 2018, 9:44 AM
Little Cupcake
Little Cupcake - avatar
0
There is No Background:#991100ā€; it is Background:#991100;
5th Oct 2018, 9:46 AM
Little Cupcake
Little Cupcake - avatar