+ 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
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.
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;
}
0
There is No
Background:#991100ā;
it is
Background:#991100;