如下示意,pointer-events
在0~2秒内的值都是none
,一旦到达2秒,就立刻变成了all
,由于是forwards,会一直保持all的状态
![](https://img.haomeiwen.com/i1722765/18273cf7045a5ab4.png)
button{
animation: throttle 2s step-end forwards;
}
button:active{
animation: none;
}
@keyframes throttle {
from {
pointer-events: none;
}
to {
pointer-events: all;
}
}
网友评论