<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.a{
width: 600px;
height: 400px;
background: black;
position: relative;
margin: 0 auto;
margin-top: 200px;
overflow: hidden;
}
.a1{
width: 600px;
height: 100px;
position: absolute;
background: blanchedalmond;
animation: box 5s linear /*infinite*/ forwards;
display: none;
}
.a:hover .a1{
display: block;
}
@-webkit-keyframes box{
0%{
top: -110px;
}
100%{
top: 10px;
}
}
</style>
</head>
<body>
<div class="a">
<div class="a1"></div>
</div>
</body>
</html>