<!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>
body{
padding: 50px;
background-color: bisque;
}
.box{
width: 200px;
height: 100px;
position: relative;
border-bottom: #000000 solid 100px;
border-radius: 50%;
background-color: #fff;
animation: taiji 5s linear infinite;
}
@keyframes taiji {
100%{
transform: rotate(360deg);
}
}
.box::before{
content: '';
width: 20px;
height: 20px;
background-color: #fff;
border: 40px solid #000;
border-radius: 50%;
position: absolute;
top: 50%;
}
.box::after{
content: '';
width: 20px;
height: 20px;
background-color: #000;
border: 40px solid #fff;
border-radius: 50%;
position: absolute;
top: 50%;
left: 50%;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
CSS实现旋转太极图效果
最新推荐文章于 2025-01-08 10:08:37 发布
1908

被折叠的 条评论
为什么被折叠?



