66 lines
2.7 KiB
CSS
66 lines
2.7 KiB
CSS
/*! <<shake>> macro set for SugarCube 2.x */
|
|
@-webkit-keyframes shakeanim {
|
|
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
|
|
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
|
|
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
|
|
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
|
|
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
|
|
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
|
|
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
|
|
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
|
|
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
|
|
90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
|
|
100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
|
|
}
|
|
@-o-keyframes shakeanim {
|
|
0% { -o-transform: translate(2px, 1px) rotate(0deg); }
|
|
10% { -o-transform: translate(-1px, -2px) rotate(-1deg); }
|
|
20% { -o-transform: translate(-3px, 0px) rotate(1deg); }
|
|
30% { -o-transform: translate(0px, 2px) rotate(0deg); }
|
|
40% { -o-transform: translate(1px, -1px) rotate(1deg); }
|
|
50% { -o-transform: translate(-1px, 2px) rotate(-1deg); }
|
|
60% { -o-transform: translate(-3px, 1px) rotate(0deg); }
|
|
70% { -o-transform: translate(2px, 1px) rotate(-1deg); }
|
|
80% { -o-transform: translate(-1px, -1px) rotate(1deg); }
|
|
90% { -o-transform: translate(2px, 2px) rotate(0deg); }
|
|
100% { -o-transform: translate(1px, -2px) rotate(-1deg); }
|
|
}
|
|
@keyframes shakeanim {
|
|
0% { transform: translate(2px, 1px) rotate(0deg); }
|
|
10% { transform: translate(-1px, -2px) rotate(-1deg); }
|
|
20% { transform: translate(-3px, 0px) rotate(1deg); }
|
|
30% { transform: translate(0px, 2px) rotate(0deg); }
|
|
40% { transform: translate(1px, -1px) rotate(1deg); }
|
|
50% { transform: translate(-1px, 2px) rotate(-1deg); }
|
|
60% { transform: translate(-3px, 1px) rotate(0deg); }
|
|
70% { transform: translate(2px, 1px) rotate(-1deg); }
|
|
80% { transform: translate(-1px, -1px) rotate(1deg); }
|
|
90% { transform: translate(2px, 2px) rotate(0deg); }
|
|
100% { transform: translate(1px, -2px) rotate(-1deg); }
|
|
}
|
|
.shake-block,
|
|
.shake {
|
|
-webkit-animation-duration: 0.8s;
|
|
-o-animation-duration: 0.8s;
|
|
animation-duration: 0.8s;
|
|
-webkit-animation-iteration-count: infinite;
|
|
-o-animation-iteration-count: infinite;
|
|
animation-iteration-count: infinite;
|
|
-webkit-animation-name: shakeanim;
|
|
-o-animation-name: shakeanim;
|
|
animation-name: shakeanim;
|
|
-webkit-animation-timing-function: linear;
|
|
-o-animation-timing-function: linear;
|
|
animation-timing-function: linear;
|
|
-webkit-transform-origin: 50% 50%;
|
|
-ms-transform-origin: 50% 50%;
|
|
-o-transform-origin: 50% 50%;
|
|
transform-origin: 50% 50%;
|
|
}
|
|
.shake-block {
|
|
display: block;
|
|
}
|
|
.shake {
|
|
display: inline-block;
|
|
}
|