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-top.scss
2021-08-31 11:30:22 -04:00

40 lines
755 B
SCSS

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