您可以像这个DEMO一样创建CSS动画
@keyframes shine{ 10% { opacity: 1; top: -30%; left: -30%; transition-property: left, top, opacity; transition-duration: 0.7s, 0.7s, 0.15s; transition-timing-function: ease; } 100% { opacity: 0; top: -30%; left: -30%; transition-property: left, top, opacity; } }