|
|

楼主 |
发表于 2025-7-5 11:10
|
显示全部楼层
本帖最后由 马黑黑 于 2025-7-5 12:16 编辑
可以考虑将阴影部分仅放在最里层的div,像这样:
- <style>
- .player { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 2px solid green; border-color: orange red green transparent; transition: width .45s, height .45s; cursor: pointer; display: grid; place-items: center; animation: rot 4s linear infinite; --deg: 1turn; }
- .player::before, .player::after { position: absolute; content: ''; width: 90%; height: 90%; border: inherit; border-radius: inherit; border-color: inherit; animation: rot 4s linear infinite; --deg: 2turn; }
- .player::after { width: 80%; height: 80%; --deg: 3turn; }
- .player:hover { width: 210px; height: 220px; }
- .player > div { width: 70%; height: 70%; background: url('https://638183.freep.cn/638183/small/2025/b2.png') no-repeat center/80% 80%; border-color: transparent purple transparent cyan; filter: drop-shadow(0 0 30px gray); --deg: 2turn; }
- @keyframes rot { to { transform: rotate(var(--deg)); } }
- </style>
- <div class="player">
- <div class="player"></div>
- </div>
复制代码
|
评分
-
| 参与人数 2 | 威望 +80 |
金钱 +160 |
经验 +80 |
收起
理由
|
花飞飞
| + 30 |
+ 60 |
+ 30 |
很给力! |
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|