Last active
September 17, 2020 20:57
-
-
Save dguo/d83ebf7471280785c1634bac3be9df9e to your computer and use it in GitHub Desktop.
blog - Animated Multiline Link Underlines with CSS - code
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; | |
background-image: linear-gradient(currentColor, currentColor); | |
background-position: 0% 100%; | |
background-repeat: no-repeat; | |
background-size: 0% 2px; | |
transition: background-size .3s; | |
} | |
a:hover, a:focus { | |
background-size: 100% 2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment