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-vertical.scss

40 lines
757 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
/* Wobble Vertical */
@include keyframes(#{$nameSpace}-wobble-vertical) {
16.65% {
@include prefixed(transform, translateY(8px));
}
33.3% {
@include prefixed(transform, translateY(-6px));
}
49.95% {
@include prefixed(transform, translateY(4px));
}
66.6% {
@include prefixed(transform, translateY(-2px));
}
83.25% {
@include prefixed(transform, translateY(1px));
}
100% {
@include prefixed(transform, translateY(0));
}
}
@mixin wobble-vertical {
@include hacks();
&:hover,
&:focus,
&:active {
@include prefixed(animation-name, #{$nameSpace}-wobble-vertical);
@include prefixed(animation-duration, 1s);
@include prefixed(animation-timing-function, ease-in-out);
@include prefixed(animation-iteration-count, 1);
}
}