Skip to content

Instantly share code, notes, and snippets.

@arturparkhisenko
Created January 12, 2019 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arturparkhisenko/becc2637b5e9246fdb2e97cc67dae6b5 to your computer and use it in GitHub Desktop.
Save arturparkhisenko/becc2637b5e9246fdb2e97cc67dae6b5 to your computer and use it in GitHub Desktop.
pause js animations and disable css animations
/* 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