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

41 lines
755 B
SCSS
Raw Normal View History

2021-08-31 15:30:22 +00:00
/* 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);
}
}