效果:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body {
padding: 0;
margin: 0;
padding-left: 100px;
}
.div1 .aa {
border: none;
}
.div1 .aa, .div3 .cc {
width: 100px;
height: 100px;
border-radius: 100px;
}
.div3 .cc {
border: 1px solid blue;
}
.div1 .bb {
width: 10px;
height: 10px;
background: red;
border-radius: 100px;
position: absolute;
top: -5.5px;
left: 45px;
}
.div1 {
animation: firstdonghua 5s 0s linear infinite;
}
.div3 {
position: relative;
top: 0;
left: -100px;
transform: rotateX(65deg) rotateZ(0deg);
}
.div1, .div3 {
width: 100px;
height: 100px;
top: 100px;
/*border: 1px blue solid;*/
position: relative;
float: left;
/*transform: rotateX(65deg);*/
}
@keyframes firstdonghua {
0% {
/*top: 0px;*/
/*left: 0px;*/
/*transform: rotateZ(0deg);*/
transform: rotateX(65deg) rotateZ(0deg);
}
100% {
/*top: 0px;*/
/*left: 0px;*/
transform: rotateX(65deg) rotateZ(-360deg);
}
}
@keyframes nixiang {
0% {
/*top: 0px;*/
/*left: 0px;*/
/*transform: rotateZ(0deg);*/
transform: rotateX(65deg) rotateZ(0deg);
}
100% {
/*top: 0px;*/
/*left: 0px;*/
transform: rotateX(65deg) rotateZ(360deg);
}
}
</style>
</head>
<body>
<div class="div1">
<div class="aa"></div>
<div class="bb"></div>
</div>
<div class="div3">
<div class="cc"></div>
</div>
<div class="div2">
<div class="aa"></div>
<div class="bb"></div>
</div>
</body>
</html>