A Pen by Captain Anonymous on CodePen.
Created
February 21, 2015 19:49
-
-
Save onishiweb/ae5ab63e43f81d813cf4 to your computer and use it in GitHub Desktop.
gbzbjY
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
<ul> | |
<li><a href="#about" id="menu-about">About</a></li> | |
<li><a href="#work" id="menu-work">Work</a></li> | |
<li><a href="#speaking" id="menu-speaking">Speaking</a></li> | |
</ul> |
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
body { background-color:#F5ECD9; } | |
ul { | |
list-style:none; | |
margin:30px 20px; | |
padding:0; | |
} | |
li { | |
display:inline-block; | |
padding:0 40px 0 0; | |
font-size:22px; | |
font-family:sans-serif; | |
transition:opacity .3s ease-out; | |
} | |
a { | |
position:relative; | |
text-decoration:none; | |
color:#3b3b3b; | |
text-transform:uppercase; | |
transition:color .2s ease-out; | |
} | |
a:after { | |
position:absolute; | |
top:0; | |
left:110%; | |
z-index:-1; | |
width:400px; | |
opacity:0; | |
transition:opacity .3s ease-in; | |
} | |
#menu-about:after { content:"me"; } | |
#menu-work:after { content:"I've done"; } | |
#menu-speaking:after { content:"where and when"; } | |
ul:hover li { opacity:.05; } | |
ul li:hover { opacity:1; } | |
li:hover a:after { opacity:1; } | |
a:hover { color:#E8275B; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment