无法仅在 svg 徽标上设置光扫描
徽标上出现光扫:hover
它应该只在 svg 图像路径内
.preloader {
position: fixed;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100vh;
background: linear-gradient(119.5deg, #242524 1.62%, #5B5B5B 90.13%);
}
.logo {
display: none;
}
.sp {
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
width: 60%;
height: 70px;
}
.sp:after {
content: '';
width: 50px;
height: 900px;
position: absolute;
background-color: #ffffff45;
top: 0;
transition: all 1s ease-in-out;
transform: rotate(135deg) translate(400px, 400px);
}
.sp:hover:after {
transform: rotate(135deg) translate(-600px, -200px);
}
<div class="preloader">
<span class="sp">
<svg xmlns="http://www.w3.org/2000/svg" width="764" height="65" viewBox="0 0 764 65" fill="none">
<path
fill="#D7B56D" />
</svg>
</span>
</div>
忽然笑
繁花如伊
相关分类