|
|

楼主 |
发表于 2025-7-24 13:28
|
显示全部楼层
参考代码
- <style>
- .ma {
- position: absolute;
- left: 20%;
- top: 20%;
- width: 300px;
- height: 300px;
- filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.5));
- animation: rot 8s linear infinite;
- }
- .son {
- position: absolute;
- width: 50%;
- height: 50%;
- background: radial-gradient(at 15% 15%, gold, yellow);
- border-radius: 50% 100% 0 100%;
- box-shadow: inset 0 0 34px rgba(120, 110, 0, 1);
- }
- .son::before, .son::after {
- position: absolute;
- content: '';
- width: 100%;
- height: 100%;
- background: inherit;
- border-radius: inherit;
- box-shadow: inherit;
- transform-origin: 100% 100%;
- transform: rotate(120deg);
- }
- .son::after {
- transform: rotate(240deg);
- }
- @keyframes rot {
- to { transform: rotate(360deg); }
- }
- </style>
-
- <div class="ma">
- <div class="son"></div>
- </div>
复制代码
|
评分
-
| 参与人数 1 | 威望 +50 |
金钱 +100 |
经验 +50 |
收起
理由
|
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|