Skip to content

Instantly share code, notes, and snippets.

@tyv
Created November 12, 2012 13:20
Show Gist options
  • Save tyv/4059359 to your computer and use it in GitHub Desktop.
Save tyv/4059359 to your computer and use it in GitHub Desktop.
Untitled
ul
{
padding: 0;
margin: 0;
list-style: none;
}
.popup
{
position: absolute;
padding: 10px;
height: 100px;
overflow: hidden;
opacity: 0;
transition: opacity 0.2s ease-in 0.2s;
}
.popup:before
{
content: '';
position: absolute;
left: 0;
top: -3px;
height: 1px;
margin-left: -5px;
width: 120%;
z-index: 1;
box-shadow: 0 0 6px 1px rgba(0,0,0,1)
}
.popup-i
{
position: relative;
width: 200px;
height: 100px;
top: -100px;
transition: top 0.2s ease-in 0.1s;
}
input:checked ~ .popup
{
opacity: 1;
}
input:checked ~ .popup .popup-i
{
top: 0;
}
<div class="dropdown">
<input type="checkbox" id="id">
<label for="id">тык</label>
<div class="popup">
<div class="popup-i">
<ul>
<li>dddd</li>
<li>dddd</li>
<li>dddd</li>
</ul>
</div>
</div>
</div>
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment