div部分:
bash
<div class="wave_ball">
<!-- 高光部分-->
<div class="lightBg light1"></div>
<div class="lightBg light2"></div>
</div>
样式部分:
bash
.wave_ball {
position: absolute;
top: 0;
left: 0;
width: 600px;
height: 600px;
overflow: hidden;
line-height: 0;
border-radius: 50%;
//background: #267dd3;
box-shadow: inset 0 0 15px 2px rgb(255, 255, 255, 0.6),
inset 0 0 20px 20px rgb(255, 255, 255, 0.25);
z-index: 3;
.lightBg {
position: absolute;
background: radial-gradient(farthest-side at 50% 50%, #ffffffb0 5%, #0000);
}
.light1 {
top: 80px;
left: 130px;
border-radius: 30px;
width: 50px;
height: 70px;
transform: rotateY(20deg) rotate(55deg)
}
.light2 {
top: 180px;
left: 60px;
border-radius: 30px;
width: 26px;
height: 80px;
transform: rotateY(20deg) rotate(23deg)
}
}
效果图(仅玻璃球部分):