0

When I wrote the animation codes on my computer, I found it didn't work, so what do I do for these codes to work?

css codes

17th Aug 2020, 10:03 PM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar
12 odpowiedzi
+ 3
Share your code so we can help you. There is a tiny chance we’ll be able to guess your code then fix it.
17th Aug 2020, 10:12 PM
Rowsej
Rowsej - avatar
+ 3
Would you put your code on code playground, here in sololearn, and give the link to it in that thread, so we can see what else could cause issue?
18th Aug 2020, 8:04 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 2
‎Sohaila Sherif Omar Maybe try adding vendor prefixes...
18th Aug 2020, 12:32 AM
Rowsej
Rowsej - avatar
+ 1
Sohaila Sherif Omar, On playground it works, so if not on your computer, have you used style tags within the html or external CSS ? If so, have you provided the link to your CSS with correct path ? If it still doesn't work, you could try to put your html and CSS file in the w3validator to see if you have some errors or warnings at some points. https://validator.w3.org/ This link gives you the page to check your html, and under the inputs you have some other links to check CSS.
17th Aug 2020, 11:59 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 1
you have not given background-color property in css of body tag ??? Add Background-color:teal ; in body tag Hope it will work.
18th Aug 2020, 2:46 AM
Divya Mohan
Divya Mohan - avatar
+ 1
You mean, it was working on the other pc ?
18th Aug 2020, 8:51 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 1
So, if you wrote the exact same codes on both, it's mistery🤔...
18th Aug 2020, 8:54 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
body { animation-name:colorchange; animation-duration:20s; animation-iteration-count: infinite; } @keyframes colorchange { 20% {background-color: red;} 40% {background-color: orange;} 60% {background-color: yellow;} 80% {background-color: green;} 100% {background-color: blue;} }
17th Aug 2020, 11:34 PM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar
0
I tried everything you told me, but it was futile, so what should I do?
18th Aug 2020, 10:29 AM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar
0
I wrote the same codes on another computer, and I did the codes
18th Aug 2020, 8:48 PM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar
0
Yes
18th Aug 2020, 8:51 PM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar
0
In the Windows version or the computer itself
18th Aug 2020, 8:57 PM
‎Sohaila Sherif Omar
‎Sohaila Sherif Omar - avatar