JSFiddle - React, Tailwind, and code Playground
HTML
<a class="trigger" href="#"></a>
<div class='panel'>efef</div>
<div id='overlay'></div>
CSS
body {
background: url(http://www.red-team-design.com/wp-content/uploads/2011/09/bg.png);
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.panel {
position: relative;
z-index:9999;
background-color:#9D0053;
height:160px;
padding:5px;
margin:10px 0 0;
display:none;
}
a.trigger {
position: fixed;
top: 170px;
width: 35px;
height: 35px;
background-image: url(http://urang-kurai-x31.googlecode.com/svn/trunk/CM/UK/image/spirt-1.png);
background-position: 35px 0px;
z-index:9999;
}
a.trigger:hover {
}
a.active {
background-image: url(http://urang-kurai-x31.googlecode.com/svn/trunk/CM/UK/image/spirt-1.png);
background-position: 35px 140px;
}
#overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 999;
background-color: rgba(100, 100, 101, 0.55);
background-image: none;
display: none;
}
JavaScript
$(document).ready(function () {
$(".trigger").click(function () {
$(".panel").toggle("slow");
$('#overlay').fadeToggle();
$(this).toggleClass("active");
});
});