A Pen by White Wolf Wizard on CodePen.
Created
January 16, 2014 11:30
-
-
Save pavsmk/8453410 to your computer and use it in GitHub Desktop.
A Pen by White Wolf Wizard.
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{:href=>'#'} Just | |
%a{:href=>'#'} a | |
%a{:href=>'#'} few | |
%a{:href=>'#'} links | |
%a{:href=>'#'} with | |
%a{:href=>'#'} a | |
%a{:href=>'#'} nice | |
%a{:href=>'#'} effect. |
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
@import "compass"; | |
$accent: #37D; | |
body { | |
padding: 100px; | |
background: #EEE; | |
font-family: sans-serif; | |
text-align: center; | |
font-smoothing: antialiased; | |
} | |
a { | |
position: relative; | |
padding: 0 5px; | |
color: $accent; | |
text-decoration: none; | |
&:after { | |
content: ''; | |
position: absolute; | |
left: 0; right: 0; bottom: 0; | |
width: 100%; height: 1px; | |
margin: auto; | |
background-image: linear-gradient(90deg,transparent 0%,$accent 50%,transparent 100%); | |
transition: width .15s ease; | |
} | |
&:hover:after { width: 0; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment