Created
February 23, 2018 09:55
-
-
Save anwas/bf2f614f01f3173efa7dd555f5046874 to your computer and use it in GitHub Desktop.
[CSS Animated Underline Links (Growing underline)] #css #links #animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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