We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transition 的样式属性默认是all,在样式里设置为transform
.key{ transition: .15s transform linear; }
这样,removeTransition就可以改成
function removeTransition(event){ /* if (event.propertyName !== 'transform') return; */ // 这句话不要了 event.target.classList.remove('playing') }
The text was updated successfully, but these errors were encountered:
我发现了一个别的问题。在css样式不改变的情况下,removeTransition方法有这个判断,那么我长时间按一个键,会自动加上playing这个类,并且去不掉。如果没有这个判断就不会出现这个问题。
removeTransition
playing
Sorry, something went wrong.
No branches or pull requests
transition 的样式属性默认是all,在样式里设置为transform
这样,removeTransition就可以改成
The text was updated successfully, but these errors were encountered: