Created
February 18, 2013 15:55
-
-
Save svineet/4978382 to your computer and use it in GitHub Desktop.
A CodePen by Sai Vineet. Dropdown Menu! - A simple dropdown menu in CSS3 using transitions.
This file contains hidden or 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
<div id="container"> | |
<div class="slider" style="background:#B5E61D;"> | |
<button>lala</button> | |
</div> | |
<div class="slider" style="background:#00A2E8;"></div> | |
<div class="slider" style="background:#4AD977;"></div> | |
<div class="slider" style="background:#FFC90E;"></div> | |
<div class="slider" style="background:#3F48CC;"></div> | |
</div> |
This file contains hidden or 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
$(function(){ | |
$('button').button(); | |
}) |
This file contains hidden or 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
#container{ | |
background-color:lime; | |
width:57%; | |
margin:0 auto; | |
border-radius:5px; | |
} | |
.slider{ | |
width:100px; | |
background-color:olive; | |
height:1px; | |
float:left; | |
margin:10px; | |
transition:all 0.5s; | |
overflow:hidden; | |
text-align:center; | |
padding-top:20px; | |
padding-bottom:0px; | |
padding-left:0px; | |
paddingright:0px; | |
} | |
.slider:hover{ | |
height:100px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment