<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.box0{
position: relative;
}
.box{
position: absolute;
content: url(img/niu.png);
float: left;
animation: box 3s linear infinite forwards;
}
.box1{
position: absolute;
content: url(img/zhi.png);
float: right;
right: 0;
margin-top: 77px;
animation: box1 3s linear infinite forwards;
}
@-webkit-keyframes box{
from{}
to{
margin-left: 630px;
}
}
@-webkit-keyframes box1{
from{}
to{
margin-right: 630px;
}
}
</style>
</head>
<body>
<div class="box0">
<div class="box"></div>
<div class="box1"></div>
</div>
</body>
</html>
动画2
最新推荐文章于 2022-09-05 18:39:12 发布