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/less/effects/border-transitions/_underline-reveal.less
2021-08-31 11:30:22 -04:00

32 lines
551 B
Text

/* Underline Reveal */
.underline-reveal() {
@duration: @mediumDuration;
.hacks();
position: relative;
overflow: hidden;
&:before {
content: "";
position: absolute;
z-index: -1;
left: 0;
right: 0;
bottom: 0;
background: @activeColor;
height: 4px;
.prefixed(transform, translateY(4px));
.prefixed(transition-property, transform);
.prefixed(transition-duration, @duration);
.prefixed(transition-timing-function, ease-out);
}
&:hover,
&:focus,
&:active {
&:before {
.prefixed(transform, translateY(0));
}
}
}