Skip to content

Instantly share code, notes, and snippets.

@himynameisdave
Last active January 9, 2017 08:17
Show Gist options
  • Save himynameisdave/228c522425378f7f697906d68135f38c to your computer and use it in GitHub Desktop.
Save himynameisdave/228c522425378f7f697906d68135f38c to your computer and use it in GitHub Desktop.
Stylish <a> Styling - Adding animation effect
@linkBlue: #0000ee;
a {
color: @linkBlue;
display: inline-block;
position: relative;
text-decoration: none;
&:before {
background-color: @linkBlue;
content: '';
height: 2px;
position: absolute;
bottom: -1px;
transition: width 0.3s ease-in-out;
width: 100%;
}
&:hover {
&:before {
width: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment