Skip to content

Instantly share code, notes, and snippets.

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 sohelrana820/d8e6de0317b9e005df40bbc10da7543b to your computer and use it in GitHub Desktop.
Save sohelrana820/d8e6de0317b9e005df40bbc10da7543b to your computer and use it in GitHub Desktop.
Disable animation (animate.css) on mobile device
/*
@Author: Sohel Rana
@Author URI: http://sohelrana.me
Disable animation (animate.css) on mobile device
*/
@media only screen and (max-width: 768px) {
.animated {
/*CSS3 animation properties*/
-webkit-animation: none !important;
-moz-animation: none !important;
-o-animation: none !important;
-ms-animation: none !important;
animation: none !important;
/*CSS3 transition properties*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS3 transform properties*/
-o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment