利用动画,point-events +animation + :Active
动画采用缓动函数设置成阶梯曲线。 step-end
保持状态 : forwards
@keyframes throttle {
from {
pointer-events: none;
}
to {
pointer-events: all;
}
}
.button-once{
animation: throttle 2s step-end forwards;
}
.button-once:active{
animation: none;
}