立体旋转圆环
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<style>
@keyframes myfirst {
0% {
transform: rotateY(0deg)
}
100% {
transform: rotateY(360deg)
}
}
.round_warp {
position: relative;
width: 200px;
height: 200px;
transform-style: preserve-3d;
animation: myfirst 5s linear infinite;
transform-origin: center;
}
.round {
width: 100%;
height: 100%;
border: 10px solid #ccc;
box-sizing: border-box;
border-radius: 50%;
position: absolute;
left: 0;
top: 0;
}
.one {
transform: rotateX(60deg);
}
.two {
transform: rotateX(100deg);
}
</style>
<body class="ant-row">
<div class="round_warp">
<div class="round one">1</div>
<div class="round two">2</div>
</div>
</body>
</html>
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> </head> <style> @keyframes myfirst { 0% { transform: rotateY(0deg) }100% { transform: rotateY(360deg) } }
.round_warp { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; animation: myfirst 5s linear infinite; transform-origin: center; }
.round { width: 100%; height: 100%; border: 10px solid #ccc;
box-sizing: border-box; border-radius: 50%; position: absolute; left: 0; top: 0; }
.one { transform: rotateX(60deg); }
.two { transform: rotateX(100deg); } </style> <body class="ant-row"> <div class="round_warp"> <div class="round one">1</div> <div class="round two">2</div> </div> </body></html>