Last active
January 9, 2019 10:33
-
-
Save IvanofSA/6a1c37ddc3baadc3dd881b49d43281d6 to your computer and use it in GitHub Desktop.
hover underline
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 { | |
color: blue; | |
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 { | |
background-size: 100% 2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment