<!-- 실습3번째 - animation -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="prac_animation.css">
</head>
<body>
<div class="circle"></div>
</body>
</html>
.circle{
border-radius: 50%;
width: 80px;
height: 80px;
background-color: palevioletred;
position: absolute;
animation: circle1 3s linear 6 ;
}
@keyframes circle1 {
0%{
top:0;
left: 0;
}
25%{
top:0;
left: 400px;
}
50%{
top:200px;
left: 400px;
}
75%{
top:200px;
left:0;
}
100%{
top:0;
left:0;
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.