Im trying to emulate the animation on this sites links https://www.baunfire.com/
When you hover over the LETS TALK link, first the underline disappears, then it reappears
So far I have this
.link-underline{
position:relative;
text-decoration:none;
display:inline-block;
}
.link-underline:after {
display:block;
content: '';
border-bottom: solid 1px #000;
transform: scaleX(1);
transition: transform 250ms ease-in-out;
transform-origin:100% 50%
}
.link-underline:hover:after {
transform: scaleX(0);
transform-origin:0 50%;
}
<a href="#" class="link-underline">link underline.</a>
Which removes the underline when you hover over the link, and underlines the link again when you hover out of the link. What I'm trying to do is have the link be underlined again after a 1 second delay, instead of waiting for you to mouseout.
Also, I'm trying to make it go left to right, instead of right to left