% in Animations
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="Animations.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Animations</title>
</head>
<body>
<div id="box">Animation Demo</div>
</body>
</html>
CSS
#box{
height: 300px;
width: 700px;
animation:colors 2s ease-in 0s 3 reverse;
}
/* % IN ANIMATION */
@keyframes colors {
0%{
background-color: antiquewhite;
}
50%{
background-color: yellow;
}
100%{
background-color: aqua;
}
}
Comments
Post a Comment