|
|

楼主 |
发表于 2025-7-29 12:52
|
显示全部楼层
一楼代码
- <style>
- .clip-box {
- position: relative;
- margin: 30px auto;
- width: 600px;
- height: 600px;
- filter: drop-shadow(2px 2px 12px rgba(0,0,0,.5));
- }
- .clip-box::before, .clip-box::after {
- position: absolute;
- content: '';
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: repeating-linear-gradient(90deg, beige, tan, beige 2%);
- transition: 2s;
- }
- .clip-box::before {
- clip-path: polygon(0 0,0 100%,100% 100%);
- }
- .clip-box::after {
- left: -1px;
- width: calc(100% + 1px);
- height: calc(100% + 1px);
- clip-path: polygon(0 0,100% 0,100% 100%);
- }
- .clip-box:hover::before {
- clip-path: polygon(0 0,50% 50%,100% 0);
- }
- .clip-box:hover::after {
- clip-path: polygon(50% 50%,0 100%,100% 100%);
- }
- </style>
- <div class="clip-box"></div>
复制代码
|
评分
-
| 参与人数 2 | 威望 +80 |
金钱 +160 |
经验 +80 |
收起
理由
|
花飞飞
| + 30 |
+ 60 |
+ 30 |
很给力! |
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|