评论资讯 [ 总 775 则 ]
·悄然 - 2026-1-17 10:21
·飞飞 - 2026-1-17 10:19
·马黑 - 2026-1-17 10:09
·飞飞 - 2026-1-15 16:20
·悄然 - 2026-1-15 16:19
·马黑 - 2026-1-15 12:19
·悄然 - 2026-1-15 08:58
·飞飞 - 2026-1-14 15:25
·飞飞 - 2026-1-1 08:43
·飞飞 - 2025-12-24 18:49
·飞飞 - 2026-1-17 10:19
·马黑 - 2026-1-17 10:09
·飞飞 - 2026-1-15 16:20
·悄然 - 2026-1-15 16:19
·马黑 - 2026-1-15 12:19
·悄然 - 2026-1-15 08:58
·飞飞 - 2026-1-14 15:25
·飞飞 - 2026-1-1 08:43
·飞飞 - 2025-12-24 18:49
友情链接
网站统计
就地取材:mask遮罩趣味玩法
<style>
.ma {
margin: 20px auto;
width: 600px;
height: 600px;
background: url('https://638183.freep.cn/638183/Pic/38/st6.jpg') no-repeat 0/cover;
overflow: hidden;
position: relative;
}
.ma::before {
position: absolute;
content: '';
inset: 0;
background: inherit;
mask: url('https://638183.freep.cn/638183/web/svg/p1.svg') no-repeat center/50% 50%;
-webkit-mask: url('https://638183.freep.cn/638183/web/svg/p1.svg') no-repeat center/50% 50%;
animation: rot 3s linear infinite;
}
@keyframes rot {
to { transform: rotate(360deg); }
}
</style>
<div class="ma"></div>
前一篇: I Can(lrc_only模块演示)
下一篇: radial+mask实现图片转场效果
发表评论:
评论列表 [1条]
#1 | 飞飞 于 2025-8-15 10:01 发布: background: inherit;这个背景可以这样取

