demo.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.box {
width: 250px;
height: 250px;
margin: 100px auto;
position: relative;
border: 5px dashed red;
border-radius: 50%;
/* 让子盒子保持3D效果 */
transform-style: preserve-3d;
/*perspective: 500px;*/ /* 透视:近大远小的效果。 只是模拟的3D效果,本质上还是2D */
animation: animate1 8s linear infinite; /* 动画持续时间 匀速 循环 */
}
.box>div {
width: 100%;
height: 100%;
position: absolute;
text-align: center;
line-height: 250px;
font-size: 60px;
color: #