Download Reveal Button

A custom jQuery widget of a download button that, when hovered, reveals some information about that specific download.

HTML

<div class="button" data-value="2,487,102 Times">Download Now</div>
<br /><br /><br />
<div class="button" data-value="It's awesome!">Visit Website</div>
<br /><br /><br />
<div class="button" data-value="Just a bit.">Long Button Test</div>

CSS

body {
    margin:50px;
}
.button {
    display:block;
    position:absolute;
    padding:10px;
    font-family:'Arial', sans-serif;
    font-size:14px;
    font-weight:bold;
    text-transform:uppercase;
    color:#835503;
    text-shadow:0px 1px 1px #fbf5cb;
    
    border:1px solid #DAB347;
    border-top-left-radius:4px;
    border-bottom-left-radius:4px;
    box-shadow:0px 1px 1px 0px #CCC;
    cursor:pointer;
    
    background: #fbf5cb; /* Old browsers */
    background: -moz-linear-gradient(top,  #fbf5cb 1%, #eed43d 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#fbf5cb), color-stop(100%,#eed43d)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fbf5cb 1%,#eed43d 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #fbf5cb 1%,#eed43d 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #fbf5cb 1%,#eed43d 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fbf5cb 1%,#eed43d 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbf5cb', endColorstr='#eed43d',GradientType=0 ); /* IE6-9 */

}
.drawer {
    box-sizing:border-box;
    z-index:-1;
    position:absolute;
    top:3px;
    left:1px;
    padding:6px 10px;
    text-align:center;
    -webkit-transition:0.3s left ease-in;
    
    font-family:'Arial', sans-serif;
    font-size:12px;
    font-weight:bold;
    text-transform:uppercase;
    color:#5E5E5E;
    text-shadow:0px 1px 1px #DDD;
    
    border:1px solid #BFBFBF;
    box-shadow:0px 1px 0px 0px #EEE inset;
    
    background: #dcdbd8; /* Old browsers */
    background: -moz-linear-gradient(top,  #dcdbd8 0%, #cfcecb 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dcdbd8), color-stop(100%,#cfcecb)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #dcdbd8 0%,#cfcecb 100%); /* Chrome10+,Safari5.1+ */
    background:...

JavaScript

$(function() {
    $(".button").each(function() {
        $(this).append("<div class='drawer'>" +  $(this).data('value') + "<div class='handle'>||</div></div>");
        $(".drawer", this).width($(this).width());
    });
    
    $(".button").mouseenter(function() {
        $(".drawer", this).css("left", $(this).outerWidth() - 5);
    }).mouseleave(function() {
        $(".drawer", this).css("left", "1px");
    });
});