Merge pull request #6 from atomiks/fix-transitionend

Fix styles breaking transitionend/animationend event
This commit is contained in:
Andy Bell 2019-10-03 20:56:18 +01:00 committed by GitHub
commit b9fc9a3685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,11 +67,12 @@ select {
font: inherit; font: inherit;
} }
/* Remove _all_ animations and transitions for people that prefer not to see them */ /* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
* { * {
animation-play-state: paused !important; animation-duration: 0.01ms !important;
transition: none !important; animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important; scroll-behavior: auto !important;
} }
} }