Animation 2
Animation 2
DOCTYPE
html>
<html>
<head>
<style>
div{
width: 100px;
height: 50px;
background-color:hotpink;
font-weight: bold;
position: relative;
animation: mymove 5s infinite;
}
#div1{animation-timing-function: linear;}
#div2{animation-timing-function: ease;}
#div3{animation-timing-function: ease-in;}
#div4{animation-timing-function: ease out;}
#div5{animation-timing-function: ease-in-out;}
@keyframes mymove{
from{left: 0px;}
to{left: 300px;}
}
</style>
</head>
<body>
<h1>CSS Animation</h1>
<p> The animation-timing-function property specifies the speed curve of the
animation. The following example shows some of the different speed curves that can
be used</p>
</body>
</html>