Create Movement Using CSS Animation Stuck

Create Movement Using CSS Animation Stuck
0.0 0


Tell us what’s happening:
Howdy! I only added left offset to this and used the provided values. When I try to test this I get.

“// running test
The @keyframes rule for 100% should use the left offset of -25px.
// tests completed”

It looks like I did what it wanted. Am I missing something?

Your code so far

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

#rect {
  animation-name: rainbow;
  animation-duration: 4s;

@keyframes rainbow {
  0% {
    background-color: blue;
    top: 0px;
    left: 0px;
  50% {
    background-color: green;
    top: 50px;
    left: 25px;
  100% {
    background-color: yellow;
    top: 100px;
    left: -25px;

<div id="rect"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.1 Safari/605.1.15.

Link to the challenge:


It looks like it won’t pass because you changed the top property in 100%. Try setting it back to 0px


Thank you! That was correct. I wish it could say that. Didn’t realize that value was changed.