1
0
Fork 0
mirror of https://github.com/uhIgnacio/igna.rocks.git synced 2024-08-15 02:23:12 +00:00
igna.rocks/assets/js/scss/effects/2d-transitions/_wobble-horizontal.scss
2021-08-31 11:30:22 -04:00

39 lines
765 B
SCSS

/* Wobble Horizontal */
@include keyframes(#{$nameSpace}-wobble-horizontal) {
16.65% {
@include prefixed(transform, translateX(8px));
}
33.3% {
@include prefixed(transform, translateX(-6px));
}
49.95% {
@include prefixed(transform, translateX(4px));
}
66.6% {
@include prefixed(transform, translateX(-2px));
}
83.25% {
@include prefixed(transform, translateX(1px));
}
100% {
@include prefixed(transform, translateX(0));
}
}
@mixin wobble-horizontal {
@include hacks();
&:hover,
&:focus,
&:active {
@include prefixed(animation-name, #{$nameSpace}-wobble-horizontal);
@include prefixed(animation-duration, 1s);
@include prefixed(animation-timing-function, ease-in-out);
@include prefixed(animation-iteration-count, 1);
}
}