Menu
×
×
Correct!
Exercise:Specify that the animation of the <div> element should have a "1" second delay before starting. Hint: Use the animation-delay property. |
Edit This Code:
x
<html> <head> <style> div { width: 100px; height: 100px; position: relative; background-color: red; animation-name: example; animation-duration: 2s; } @keyframes example { 0% {background-color: red; left:0px;} 50% {background-color: yellow; left:200px;} 100% {background-color: red; left:0px;} } </style> </head> <body> <div></div> </body> <!-- Mirrored from www.w3schools.com/css/exercise.asp?filename=exercise_css3_animations3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:35:43 GMT --> </html> Result:
|
Correct Code:
xxxxxxxxxx Result:
|