<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
#kk{
width: 510PX;
height: 760PX;
border: 3PX solid red;
position: relative;
margin:0 auto;
overflow: hidden;
}
#ditu{
position: absolute;
animation: name 5s infinite;
/*动画匀速*/
animation-timing-function: linear;
}
#ditu2{
position: absolute;
/*调用动画*/
animation: name2 5s infinite;
/*动画匀速*/
animation-timing-function: linear;
}
#fj{
position: absolute;
margin:0 auto;
clip: rect(0px 140px 78px 0px);
top: 680px;
left: 180px;
animation: feiji 5s infinite;
animation-timing-function: linear;
}
@keyframes name{
from{
top: 0px;
}
to{
top: 768px;
}
}
@keyframes name2{
from{
top: -768px;
}
to{
top: 0px;
}
}
@keyframes feiji{
from{top: 768px;}
to{
top: -10px;
}
}
</style>
</head>
<body>
<div id="kk">
<img id="ditu" src="img/2.jpg" />
<img id="ditu2" src="img/2.jpg" />
<img id="fj" src="img/1.png"/>
</div>
</body>
</html>