What am I doing wrong? Or I can't do because of Sololearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What am I doing wrong? Or I can't do because of Sololearn?

https://code.sololearn.com/WMwAMLdQC4zf/?ref=app

4th Feb 2021, 9:42 AM
DeepInsomnia
DeepInsomnia - avatar
11 Answers
+ 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
5th Feb 2021, 11:55 AM
Sojith Sunny
Sojith Sunny - avatar
+ 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
4th Feb 2021, 10:00 AM
Abhay
Abhay - avatar
+ 2
DeepInsomnia you are already animating it.
4th Feb 2021, 10:04 AM
Abhay
Abhay - avatar
+ 1
You have 100% for html and body tags, but 100% of what ?
4th Feb 2021, 9:48 AM
Abhay
Abhay - avatar
+ 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
4th Feb 2021, 9:51 AM
Abhay
Abhay - avatar
+ 1
Abhay thanks, I understood how to color. But I wanted to animate it) Although thanks!
4th Feb 2021, 10:04 AM
DeepInsomnia
DeepInsomnia - avatar
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)
4th Feb 2021, 9:50 AM
DeepInsomnia
DeepInsomnia - avatar
0
Abhay So I do not need weight or height in body and html?
4th Feb 2021, 9:52 AM
DeepInsomnia
DeepInsomnia - avatar
0
Abhay hm. ok, thx
4th Feb 2021, 10:05 AM
DeepInsomnia
DeepInsomnia - avatar
0
DeepInsomnia check line 6, @keyframes gradient
4th Feb 2021, 10:13 AM
Abhay
Abhay - avatar
0
Sojith Sunny yeah, that's it. Thx
5th Feb 2021, 4:52 PM
DeepInsomnia
DeepInsomnia - avatar