本帖最后由 马黑黑 于 2022-4-6 10:09 编辑
代码:
<style>
.stage {
display: flex;
justify-content: center;
width: 760px;
height: 500px;
background: #000;
}
.light {
width: 0px;
height: 0px;
border: 12px solid;
border-color: transparent white transparent transparent;
filter: blur(1px);
opacity: .6;
transition: .5s;
transform-origin: 50% 0;
transform: scale(50,1.2);
animation: rot 8s ease infinite alternate;
}
@keyframes rot {
to { transform: rotate(-180deg) scale(40,2); }
}
</style>
<div class="stage">
<div class="light"></div>
</div>
|