太极效果图如下:可以旋转的哦
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>change tab</title>
<style>
* {
padding: 0;
margin: 0;
font-size: 0;
}
.box {
width: 400px;
height: 400px;
position: fixed;
top: 200px;
left: 50%;
transform: translateX(-50%);
border: 1px solid #ccc;
border-radius: 50%;
overflow: hidden;
animation: circling 1s linear 0s infinite;
}
@keyframes circling {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.left {
width: 200px;
height: 400px;
display: inline-block;
background: black;
position: relative;
}
.left::before {
content: '';
width: 200px;
height: 200px;
background: black;
position: absolute;
right: -90px;
top: 0;
border-radius: 50%;
}
.right {
width: 200px;
height: 400px;
display: inline-block;
background: #fff;
}
.right::before {
content: '';
width: 200px;
height: 200px;
background: #fff;
position: absolute;
left: 110px;
bottom: 0px;
border-radius: 50%;
}
.white {
position: absolute;
width: 60px;
height: 60px;
background: black;
z-index: 2;
border-radius: 50%;
left: 170px;
bottom: 65px;
}
.black {
position: absolute;
width: 60px;
height: 60px;
background: #fff;
z-index: 2;
border-radius: 50%;
left: 170px;
top: 65px;
}
</style>
</head>
<body>
<div class="box">
<div class="left">
<div class="white"></div>
</div>
<div class="right">
<div class="black"></div>
</div>
</div>
</body>
</html>