Hello. There is a code that moves the circle to a given point and back:
@-webkit-keyframes myfirst { from {background: red; top: 50px; left: 50px;} to {background: yellow; top: 300px; left: 300px;} } @-moz-keyframes myfirst { from {background: red; top: 50px; left: 50px;} to {background: yellow; top: 300px; left: 300px;} } #ball { border-radius: 100%; position: absolute; width: 50px; height: 50px; animation: myfirst 1s linear 0s 2 alternate; -moz-animation: myfirst 1s linear 0s 2 alternate; /* Firefox */ -webkit-animation: myfirst 1s linear 0s 2 alternate; /* Safari и Chrome */ }
The problem is that after the animation stops the circle disappears .. Tell me where is the error?