Get the code of Best Animation in CSS and watch video tutorials. You can practice using our code editor. Our practical guide will make your learning journey much easier. You can explore the tutorial and learn.
<div></div>div {
background: red;
width: 50px;
height: 50px;
position: relative;
animation: ramzan 2s infinite;
}
@keyframes ramzan {
0% {left: 0px; top: 0px;}
25% {left: 100px; top: 0px;}
50% {left: 100px; top: 100px;}
75% {left: 0px; top: 100px;}
100% {left: 0px; top: 0px;}
}