|
|

楼主 |
发表于 2022-1-14 23:00
|
显示全部楼层
心形效果代码分享:
<style type="text/css">
.fbox {
margin: 200px auto;
position: relative;
left: 160px;
width: 400px;
height: 400px;
}
.xin {
position: relative;
width: 100px;
height: 100px;
left: 0;
top: 0;
background: red;
filter: drop-shadow(1px 2px 4px #000);
transform: rotate(45deg);
animation: scale 1s infinite alternate;
}
.xin::before, .xin::after {
content: "";
position: absolute;
width: 100px;
height: 100px;
background: red;
border-radius: 50%;
}
.xin::before { left: -50px; }
.xin::after { top: -50px; }
@keyframes scale{
0% 100% { transform: rotate(45deg) scale(0.9,0.9); }
30% { transform:rotate(45deg) scale(0.9,0.9); }
}
</style>
<div class="fbox">
<div class="xin"></div>
</div>
|
评分
-
| 参与人数 2 | 威望 +80 |
金钱 +160 |
经验 +80 |
收起
理由
|
加林森
| + 30 |
+ 60 |
+ 30 |
赞一个! |
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|