@-webkit-keyframes luminescence{
0% {
box-shadow: 0 0 0 0 rgba(24, 220, 242, .7)
}
50% {
box-shadow: 0 0 10px 3px rgba(24, 220, 242, .7)
}
to {
box-shadow: 0 0 0 0 rgba(24, 220, 242, .7)
}
}
// 规则
@keyframes luminescence {
0% {
box-shadow: 0 0 0 0 rgba(24, 220, 242, .7)
}
50% {
box-shadow: 0 0 10px 3px rgba(24, 220, 242, .7)
}
to {
box-shadow: 0 0 0 0 rgba(24, 220, 242, .7)
}
}
// 在你需要添加的按钮样式中添加
-webkit-animation: luminescence 1.2s linear infinite;
animation: luminescence 1.2s linear infinite;