Created
January 12, 2019 02:16
-
-
Save arturparkhisenko/becc2637b5e9246fdb2e97cc67dae6b5 to your computer and use it in GitHub Desktop.
pause js animations and disable css animations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://dev.webonomic.nl/how-to-disable-css-transforms-transistions-and-animations */ | |
*, :before, :after { | |
/*CSS transitions*/ | |
transition-property: none !important; | |
/*CSS transforms*/ | |
transform: none !important; | |
/*CSS animations*/ | |
animation: none !important; | |
} | |
/* https://stackoverflow.com/a/12796883/1059640 */ | |
.paused { | |
animation-play-state:paused; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment