# Https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/learn-how-the-css-keyframes-and-animation-properties-work

**URL:** <https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714>\
**Category:** General\
**Created:** [July 9, 2019, 7:28pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714 "2019-07-09T19:28:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirza](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mirza](https://forum.freecodecamp.org/u/mirza)\
**Post date:** [July 9, 2019, 7:28pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/1 "2019-07-09T19:28:17Z")

</div>

div { height: 40px; width: 70%; background: black; margin: 50px auto; border-radius: 5px; } #rect { animation-name: rainbow; animation-duration: 4s; } @keyframes rainbow { 0% { background-color : Blue; } 50% { background-color: green; } 100% { background-color: yellow; } }

The @keyframes rule for rainbow should use a background-color of blue at 0%…  
how can i fix this error?

---

<div class="post-metadata">

**Author:** ![ArielLeslie](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/arielleslie/32/264841_2.png) [@ArielLeslie](https://forum.freecodecamp.org/u/ArielLeslie)\
**Post date:** [July 9, 2019, 7:32pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/2 "2019-07-09T19:32:46Z")

</div>

What is going on? What are you trying to do? What part do you need help with? What errors are you experiencing? What else have you tried while attempting to solve the problem?

---

<div class="post-metadata">

**Author:** ![mirza](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mirza](https://forum.freecodecamp.org/u/mirza)\
**Post date:** [July 9, 2019, 7:35pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/3 "2019-07-09T19:35:21Z")

</div>

I set the “background-color to blue” in code but at runtime it give me te error below  
“The @keyframes rule for rainbow should use a background-color of blue at 0%.”

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [July 9, 2019, 7:56pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/4 "2019-07-09T19:56:10Z")

</div>

Maybe it is a capitalisation issue

---

<div class="post-metadata">

**Author:** ![mirza](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@mirza](https://forum.freecodecamp.org/u/mirza)\
**Post date:** [July 9, 2019, 7:58pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/5 "2019-07-09T19:58:06Z")

</div>

I checked. lowercase is also raising same error.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [July 9, 2019, 8:09pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/6 "2019-07-09T20:09:27Z")

</div>

And the space between rule and two dots?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 12:58pm UTC](https://forum.freecodecamp.org/t/https-learn-freecodecamp-org-responsive-web-design-applied-visual-design-learn-how-the-css-keyframes-and-animation-properties-work/293714/7 "2021-01-16T12:58:58Z")

</div>

Closed on January 16, 2021, 12:58pm UTC


