1 Star 0 Fork 0

lcz/css效果图收集

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 3.05 KB
一键复制 编辑 原始数据 按行查看 历史
lcz 提交于 2023-12-20 14:57 +08:00 . css风车
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
.main{
width: 804px;
height: 804px;
animation: roll 3000ms linear infinite;
}
@keyframes roll{
0%{transform: rotate(0deg);}
100%{transform: rotate(-360deg);}
}
.white_circle{
z-index: 99;
position: absolute;
width: 50px;
height: 50px;
border-radius: 50px;
background-color: white;
margin: 377px 0 0 377px;
}
.fla{
position: absolute;
width: 402px;
height: 180px;
}
.fla_one{
transform: rotate(270deg);
margin:108px 0px 0px 121px;
}
.fla_two{
transform: rotate(180deg);
margin-top: 389px;
}
.fla_three{
transform: rotate(90deg);
margin: 511px 0 0 280px;
}
.fla_four{
transform: rotate(360deg);
margin: 230px 0 0 402px;
}
.tri{
width: 0;
height: 0;
border-width: 142px;
border-style: solid;
border-top-left-radius: 109px 122px;
position: absolute;
transform: rotate(45deg);
top: 28px;
left: 56px;
}
.tri_one {
border-color: #F1C40F transparent transparent #F1C40F;
}
.tri_two {
border-color: #EA4C3C transparent transparent #EA4C3C;
}
.tri_three {
border-color: #2ECC71 transparent transparent #2ECC71;
}
.tri_four {
border-color: #1ABC9C transparent transparent #1ABC9C;
}
.squ{
position: absolute;
width: 271px;
height: 170px;
border-top-right-radius: 98px 68px;
}
.squ_one{
background-color: #F39C12;
}
.squ_two{
background-color: #C0392B;
}
.squ_three{
background-color: #27AE60;
}
.squ_four{
background-color: #16A085;
}
</style>
</head>
<body>
<div class="main">
<div class="white_circle"></div>
<div class="fla fla_one">
<div class="squ squ_one"></div>
<div class="tri tri_one"></div>
</div>
<div class="fla fla_two">
<div class="squ squ_two"></div>
<div class="tri tri_two"></div>
</div>
<div class="fla fla_three">
<div class="squ squ_three"></div>
<div class="tri tri_three"></div>
</div>
<div class="fla fla_four">
<div class="squ squ_four"></div>
<div class="tri tri_four"></div>
</div>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/lcz2000/css-rendering-collection.git
git@gitee.com:lcz2000/css-rendering-collection.git
lcz2000
css-rendering-collection
css效果图收集
main

搜索帮助