Skip to content

Instantly share code, notes, and snippets.

@anwas
Created February 23, 2018 09:55
Show Gist options
  • Save anwas/bf2f614f01f3173efa7dd555f5046874 to your computer and use it in GitHub Desktop.
Save anwas/bf2f614f01f3173efa7dd555f5046874 to your computer and use it in GitHub Desktop.
[CSS Animated Underline Links (Growing underline)] #css #links #animation
a {
text-decoration: none;
position: relative;
color: #3366FF;
padding: 0 1em 0.125em;
}
a:after {
content: '';
position: absolute;
bottom: 0;
left: 1em;
right: 100%;
border-bottom: 2px solid #3366FF;
transition: right 0.4s;
}
a:hover:after {
right: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment