Were I did mistake help please

Tell us what’s happening:

Your code so far

div {
  height: 40px;
  width: 70%;
  background: black;
  margin: 50px auto;
  border-radius: 5px;

#rect {
animation-name: rainbow;
animation-duration: 4s;
@keyframes colorful {
  background-color: blue;
  background-color: green;
100% {
  background-color: yellow;
<div id="rect"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-M315F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36.

Challenge: Learn How the CSS @keyframes and animation Properties Work

Link to the challenge:

in your top section of code, i think you’re missing a couple of closing brackets, and an opening style tag

Hey @FaizMohamm!

I could suggest you to reset the lesson, and do what is said and not touch the other code.

there is a missing > in first of your code for color that i think is unnecessary.
also your there is a missing curly bracket } at the end of your div selector.
and the name of animation for your selector doesn’t match the @keyframe animation name.

1 Like