<div class="example">
<p>Hover on the link below:</p>
<a href="">This is a link</a>
</div>
<div class="example">
<a href="">This is another link but<br/> it's split over two lines</a>
</div>
a {
font-size: 20px;
color: #ff9900;
cursor: pointer;
font-weight: 600;
text-decoration: none;
display: inline;
padding-bottom: 2px;
transition: all 0.35s linear;
background: linear-gradient(
to bottom,
rgba(#ff9900, 1) 0%,
rgba(#ff9900, 1) 98%
);
background-size: 0px 2px;
background-repeat: no-repeat;
background-position: left 100%;
&:hover {
background-size: 100% 2px;
}
}
body {
color: white;
font-size: 16px;
background: black;
}
.example {
padding: 20px 30px;
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.