0
What am I doing wrong? Or I can't do because of Sololearn?
11 Respostas
+ 1
https://code.sololearn.com/WH03N4KLERN0/?ref=app
Is this how you wanted it to work?
Check the line of @keyframes. There was an unnecessary semicolon
+ 4
DeepInsomnia there is some height for the body tag i guess , works fine after correcting some code
body {
background:linear-gradient(-45deg, #00FF0C, #000BFF, #001FBB, #00FF0C);
background-size: 400% 400%;
animation: gradient 60s ease infinite;
}
@k
+ 2
DeepInsomnia you are already animating it.
+ 1
You have 100% for html and body tags, but 100% of what ?
+ 1
DeepInsomnia body doesn't have any predefined size , it takes the size of its content . I never tried on PC , so can't say why it worked there or didn't
+ 1
Abhay thanks, I understood how to color. But I wanted to animate it) Although thanks!
0
Abhay size? I made the same on PC, but I do not understand how does it works inhere. (Then I made it in another laptop, but it doesn't work)
0
Abhay So I do not need weight or height in body and html?
0
Abhay hm. ok, thx
0
DeepInsomnia check line 6,
@keyframes gradient
0
Sojith Sunny yeah, that's it. Thx