Last active
March 25, 2019 13:41
-
-
Save rowej83/8751e7e437285d3ade32f8de87b9faed to your computer and use it in GitHub Desktop.
disable all animations on mobile
This file contains hidden or 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
@media screen and (max-width: 768px) { | |
*, *:before, *:after { | |
/*CSS transitions*/ | |
transition-property: none !important; | |
/*CSS transforms*/ | |
transform: none !important; | |
/*CSS animations*/ | |
animation: none !important; | |
} | |
} | |
/* Elementor below */ | |
/* | |
All mobile device | |
*/ | |
/* Disable on Small Devices, Tablets */ | |
@media only screen and (max-width : 768px) { | |
.animated { all: unset; } | |
} | |
/* | |
only phone | |
*/ | |
/* Small Devices */ | |
@media only screen and (max-width : 767px) { | |
.animated { all: unset; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment