Created
March 14, 2012 23:55
-
-
Save korkey128k/2040505 to your computer and use it in GitHub Desktop.
nav concept
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
/** | |
* nav concept | |
*/ | |
nav { | |
} | |
nav li { | |
display:inline-block; | |
list-style:none; | |
color:#FFF; | |
} | |
nav a { | |
padding:10px 20px; | |
margin:0px 10px; | |
margin:100px auto; | |
background:#333; | |
} | |
nav a:hover{ | |
transition: width 1s linear 2s; | |
animation-duration: 3s; | |
animation-name: slideup; } | |
keyframes slideup { | |
from {padding-top:0px;} | |
to {padding-top:20px;} | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<body> | |
<nav> | |
<ul> | |
<li><a>Home</a> | |
<li><a>Stuff</a> | |
<li><a>Stuff</a> | |
<li><a>Stuff</a> | |
<li><a>Stuff</a> | |
</ul> | |
</nav> | |
</body> |
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
{"view":"split","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment