<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.wrapper{
height: 1000px;
background: url(./img/bg.jpg) no-repeat center center;
}
.box{
width:768px;
height: 768px;
margin: 0 auto;
position: relative;
animation: mybox 5s linear infinite;
}
.box img:nth-of-type(2){
position: absolute;
left: 100px;
top: 50px;
animation: mybox2 5s linear infinite;
}
.box img:nth-of-type(3){
position: absolute;
right: 50px;
top: 200px;
animation: mybox2 5s linear infinite;
}
@keyframes mybox {
from{
transform: rotate(0);
}
to{
transform: rotate(360deg);
}
}
@keyframes mybox2 {
from{
transform: rotate(360deg);
}
to{
transform: rotate(0deg);
}
}
</style>
</head>
<body>
<div class="wrapper">
<div class="box">
<img src="./img/fsw.png" alt="">
<img src="./img/1.png" alt="">
<img src="./img/2.png" alt="">
</div>
</div>
</body>
</html>