<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
<style type="text/css">
.box1{
height: 500px;
border-bottom: 2px solid black;
position: relative;
}
.box2{
height: 100px;
width: 100px;
border: 2px solid black;
border-radius: 50%;
position: absolute;
left: 0;
bottom: 0;
right: 0;
margin: 0 auto;
animation: falldown 2s;
}
@keyframes falldown{
0%,50%,100%{
top: 0;
}
25%,75%{
top: 396px;
}
}
</style>
</head>
<body>
<div class="box1">
<div class="box2">
</div>
</div>
</body>
</html>