animate.css/source/shake.css

30 lines
858 B
CSS
Raw Normal View History

2011-10-14 14:39:11 +02:00
@-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);}
2011-10-14 14:39:11 +02:00
}
2011-10-14 14:39:11 +02:00
@-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);}
2011-10-14 14:39:11 +02:00
}
2011-10-21 09:42:39 +02:00
@-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);}
}
2011-10-14 14:39:11 +02:00
@keyframes shake {
0%, 100% {transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
20%, 40%, 60%, 80% {transform: translateX(10px);}
2011-10-14 14:39:11 +02:00
}
.shake {
-webkit-animation-name: shake;
-moz-animation-name: shake;
2011-10-21 09:42:39 +02:00
-o-animation-name: shake;
2011-10-14 14:39:11 +02:00
animation-name: shake;
}