Created
May 6, 2015 16:57
-
-
Save startinggravity/ffba01b63763213965c9 to your computer and use it in GitHub Desktop.
Link underline with rollover
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 { | |
background-position: top center; | |
background-image: linear-gradient(to bottom, rgba(177,49,49,0) 50%, rgba(177,49,49,1) 50%); | |
background-size: 100% 200%; | |
border-bottom: 2px solid #b13131; | |
color: #b13131; | |
display: inline-block; | |
padding: 0 .25rem; | |
text-decoration: none; | |
transition: all .125s ease-in-out; | |
&:hover { | |
background-position: bottom center; | |
color: #eee; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment