sailei1 / blog

1 stars 0 forks source link

防止按钮重复点击 #119

Closed sailei1 closed 1 year ago

sailei1 commented 1 year ago
button{
  animation: throttle 2s step-end forwards;
}
button:active{
  animation: none;
}
@keyframes throttle {
  from {
    pointer-events: none;
  }
  to {
    pointer-events: all;
  }
}
//https://juejin.cn/post/7165828047520661534