0
Why isnt my animation working
6 Answers
+ 3
div{
background-color:blue;
height:100px;
width:100px;
position:absolute;
animation-name:red;
animation-duration:1s;
}
@keyframes red{
0% {background-color:blue;
top:0px;}
100% {background-color:red;
top:300px;}
}
You wrote animation name wrong ,also you can't use top and left properties without positioning element absolutely ,relatively or fixed
0
Put animate tag in html code
0
I want to do using css not html do tou know how
0
The color works but it still does not move down
0
Thanks