基本信息
源码名称:纯HTML5+CSS3绘制旋转的太极图效果
源码大小:1.91KB
文件格式:.html
开发语言:CSS
更新时间:2019-05-06
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3旋转的太极</title>
<style>
.taiji {
margin:50px auto 0;
height:200px;
width:200px;
animation:run-inner 2s infinite linear;
}
@keyframes run-inner {
0% {
transform:rotate(0deg)
}
25% {
transform:rotate(-90deg)
}
50% {
transform:rotate(-180deg)
}
75% {
transform:rotate(-270deg)
}
100% {
transform:rotate(-360deg)
}
}.a {
width:200px;
height:100px;
border:1px solid #D3D3D3;
border-bottom:0px;
border-radius:100px 100px 0 0;
background:#fff;
position:relative;
}
.a:after {
content:"";
background:#fff;
width:15px;
height:15px;
border-radius:50%;
position:absolute;
top:72px;
left:147px;
}
.a .inner {
width:100px;
height:50px;
position:absolute;
bottom:0;
right:0;
background:#000;
border-radius:50px 50px 0 0;
}
.b {
width:201px;
height:101px;
border:1px solid #D3D3D3;
border-top:0px;
border-radius:0 0 100px 100px;
background:#000;
position:relative;
}
.b:after {
content:"";
background:#000;
width:15px;
height:15px;
border-radius:50%;
position:absolute;
bottom:72px;
right:147px;
}
.b .inner {
width:100px;
height:50px;
position:absolute;
top:0;
left:0;
background:#fff;
border-radius:0 0 50px 50px;
}
</style>
</head>
<body>
<div class="taiji">
<div class="a">
<div class="inner">
</div>
</div>
<div class="b">
<div class="inner">
</div>
</div>
</div>
</body>
</html>