mirror of
https://github.com/animate-css/animate.css.git
synced 2024-11-17 17:45:17 +01:00
b3fae9fe00
Since IE10 dropped the animation, transform, and transition prefixes, and no stable release was made with them, we can safely drop the prefixes, too. Cutting a good 20% off the file sizes!
30 lines
No EOL
858 B
CSS
30 lines
No EOL
858 B
CSS
@-webkit-keyframes shake {
|
|
0%, 100% {-webkit-transform: translateX(0);}
|
|
10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
|
|
20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
|
|
}
|
|
|
|
@-moz-keyframes shake {
|
|
0%, 100% {-moz-transform: translateX(0);}
|
|
10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
|
|
20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
|
|
}
|
|
|
|
@-o-keyframes shake {
|
|
0%, 100% {-o-transform: translateX(0);}
|
|
10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
|
|
20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
|
|
}
|
|
|
|
@keyframes shake {
|
|
0%, 100% {transform: translateX(0);}
|
|
10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
|
|
20%, 40%, 60%, 80% {transform: translateX(10px);}
|
|
}
|
|
|
|
.shake {
|
|
-webkit-animation-name: shake;
|
|
-moz-animation-name: shake;
|
|
-o-animation-name: shake;
|
|
animation-name: shake;
|
|
} |