×
×
Correct!

Add the following 5 steps to the animation "example" (using 0%, 25%, 50%, 75%, and 100%):

  1. 0% - Set left position to "0px", top position to: "0px"
  2. 25% - Set left position to "0px", top position to: "200px"
  3. 50% - Set left position to "200px", top position to: "200px"
  4. 75% - Set left position to "200px", top position to: "0px"
  5. 100% - Set left position to "0px", top position to: "0px"
<style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 4s; } @keyframes example { 0% {left:0px; top:0px;} 25% {left:0px; top:200px;} 50% {left:200px; top:200px;} 75% {left:200px; top:0px;} 100% {left:0px; top:0px;} } </style> <body> <div>This is a div</div> </body>
<style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 4s; } @keyframes example { 0% {left:0px;top:0px;} 25% {left:0px;top:200px;} 50% {left:200px;top:200px;} 75% {left:200px;top:0px;} 100% {left:0px;top:0px;} } </style> <body> <div>This is a div</div> </body>
<style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 4s; } @keyframes example { 0% {top:0px;left:0px;} 25% {top:200px;left:0px;} 50% {top:200px;left:200px;} 75% {top:0px;left:200px;} 100% {top:0px;left:0px;} } </style> <body> <div>This is a div</div> </body>
<style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 4s; } @keyframes example { 0% {top:0px; left:0px;} 25% {top:200px; left:0px;} 50% {top:200px; left:200px;} 75% {top:0px; left:200px;} 100% {top:0px; left:0px;} } </style> <body> <div>This is a div</div> </body>

Not Correct

Click here to try again.

Correct!

<style>
div {
  width: 100px;
  height: 100px;
  position: relative;
  background-color: red;
  animation-name: example;
  animation-duration: 4s;
}

@keyframes example {
  0%   {;}
  25%  {;}
  50%  {;}
  75%  {;}
  100% {;}
}
</style>

<body>
  <div>This is a div</div>
</body>

  
  
  




×

Reset the Score?

This will reset the score of ALL 138 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 138 CSS exercises.

Share your score:



Get Certified!

Take our CSS Developer Certificate to prove that you have fundamental knowledge of web development using CSS.