mirror of
https://github.com/uhIgnacio/igna.rocks.git
synced 2024-08-15 02:23:12 +00:00
34 lines
749 B
Text
34 lines
749 B
Text
/* Hang */
|
|
.keyframes(~"@{nameSpace}-hang", {
|
|
0% {
|
|
.prefixed(transform, translateY(8px));
|
|
}
|
|
50% {
|
|
.prefixed(transform, translateY(4px));
|
|
}
|
|
100% {
|
|
.prefixed(transform, translateY(8px));
|
|
}
|
|
});
|
|
|
|
.keyframes(~"@{nameSpace}-hang-sink", {
|
|
100% {
|
|
.prefixed(transform, translateY(8px));
|
|
}
|
|
});
|
|
|
|
.hang() {
|
|
.hacks();
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
.prefixed(animation-name, ~"@{nameSpace}-hang-sink, @{nameSpace}-hang");
|
|
.prefixed(animation-duration, ~".3s, 1.5s");
|
|
.prefixed(animation-delay, ~"0s, .3s");
|
|
.prefixed(animation-timing-function, ~"ease-out, ease-in-out");
|
|
.prefixed(animation-iteration-count, ~"1, infinite");
|
|
.prefixed(animation-fill-mode, ~"forwards");
|
|
.prefixed(animation-direction, ~"normal, alternate");
|
|
}
|
|
}
|