I'm newbie . help me1. Keyframes and animation

div { height: 40px; width: 70%; background: black; margin: 50px auto; border-radius: 5px; } #rect { animation-name: rainbow ; animation-duration: 4s; } @keyframes animation-name : rainbow ; {0% {background-color: blue; } 50%{ background-color: green; } 100% {background-color: yellow; }}
******* I'm newbie . help me !

First things first, why you have written this post as a custom one. You can click Ask-for-help from the challenge section to write the question, so the code is formatted well.

And before you post please search in the forum (or) wait for the AI of FCC to show up the results of similar questions.

Please share the link of the challenge.