mirror of https://github.com/IanLunn/Hover.git
39 lines
539 B
SCSS
39 lines
539 B
SCSS
/* Wobble Horizontal */
|
|
@keyframes wobble-horizontal {
|
|
16.65% {
|
|
transform: translateX(8px);
|
|
}
|
|
|
|
33.3% {
|
|
transform: translateX(-6px);
|
|
}
|
|
|
|
49.95% {
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
66.6% {
|
|
transform: translateX(-2px);
|
|
}
|
|
|
|
83.25% {
|
|
transform: translateX(1px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@mixin wobble-horizontal {
|
|
display: inline-block;
|
|
|
|
@extend %hacks;
|
|
|
|
&:hover {
|
|
animation-name: wobble-horizontal;
|
|
animation-duration: 1s;
|
|
animation-timing-function: ease-in-out;
|
|
animation-iteration-count: 1;
|
|
}
|
|
} |