新建一个文件index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
body,
html {
height: 100%;
background: url(images/xk.jpg) no-repeat;
background-size: cover;
background-color: #222455;
}
.wrap {
width: 600px;
height: 600px;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
/* border:3px solid #fff;
*/
transform-style: preserve-3d;
}
.box01 {
width: 200px;
height: 200px;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
transform-style: preserve-3d;
animation: gogogo 10s linear infinite;
}
.circle span {
position: absolute;
left: 0;
top: 0;
width: 200px;
height: 200px;
border-radius: 50%;
border: 1px solid #fcff12;
box-shadow: 0px 0px 10px rgba(252, 255, 18, 0.5);
}
.circle span:nth-child(2) {
transform: rotateX(40deg);
}
.circle span:nth-child(3) {
transform: rotateX(80deg);
}
.circle span:nth-child(4) {