Jquery SlideUp Text Animation

by Avinashullal

HTML

<div id="sidebar-subscribe">
    	<h4>Subscribe &amp; Follow</h4>
	<span class="type" id="rss_subscribe"><span class="rss_subscribe" style="top: 0px;"></span>
	<a class="gateway" href="http://feeds.feedburner.com/tutorial9" style="top: 102px;">RSS</a>

    </span>	<span class="type" id="email_subscribe"><span class="email_subscribe" style="top: 0px;"></span>
	<a class="gateway" href="http://feedburner.google.com/fb/a/mailverify?uri=tutorial9&amp;loc=en_US" style="top: 102px;">Email</a>

    </span>	<span class="type" id="twitter_follow"><span class="twitter_follow" style="top: 0px;"></span>
	<a class="gateway" href="http://www.twitter.com/tutorial9" style="top: 102px;">Twitter</a>

    </span>
</div>

CSS

#sidebar-subscribe h4 {
    border-bottom-color: #E3E5E5;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    color: #2E3133;
    font-family:"Segoe UI", helvetica, Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 200;
    margin-bottom: 15px;
    padding-bottom: 9px;
}
#sidebar-subscribe span {
    -moz-background-clip: border;
    -moz-background-origin: padding;
    -moz-background-size: auto auto;
    background-attachment: scroll;
    background-color: #E3E5E5;
    background-image: none;
    background-position: 0 0;
    background-repeat: repeat;
    cursor: pointer;
    display: block;
    float: left;
    height: 102px;
    margin-right: 3px;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    width: 102px;
}
#sidebar-subscribe span a {
    -moz-background-clip: border;
    -moz-background-origin: padding;
    -moz-background-size: auto auto;
    background-attachment: scroll;
    background-color: #0B9DE6;
    background-image: none;
    background-position: 0 0;
    background-repeat: repeat;
    color: #FFFFFF;
    display: block;
    font-family:"Segoe UI", helvetica, Tahoma, Arial, sans-serif;
    font-size: 12px;
    height: 102px;
    line-height: 102px;
    position: absolute;
    text-align: center;
    top: 102px;
    width: 102px;
}
#sidebar-subscribe span a:hover {
    color: #FFFFFF;
}
#sidebar-subscribe span:last-of-type {
    margin-right: 0;
}
#sidebar-subscribe:after {
    clear: both;
    content:".";
    display: block;
    height: 0;
    visibility: hidden;
}
#sidebar-subscribe {
    margin-bottom: 18px;
}
#sidebar-subscribe span.type span {
    display: block;
    height: 102px;
    position: absolute;
    width: 102px;
}
#sidebar-subscribe span.type span.rss_subscribe {
    -moz-background-clip: border;
    -moz-background-origin: padding;
    -moz-background-size: auto auto;
    background-attachment: scroll;
    background-color: transparent;
    background-image:...

JavaScript

jQuery(document).ready(function () {
	    $("#sidebar-subscribe span.type").each(function () {
	        var classbb = $(this).attr("id");
	        $(this).prepend('<span class="' + classbb + '"></span>');
	    });

	    $("#sidebar-subscribe span").hover(function () {
	        $(this).children("a,span").animate({
	            top: '-=102px'
	        }, 200, function () {});
	    }, function () {
	        $(this).children("a,span").animate({
	            top: '+=102px'
	        }, 200, function () {});
	    });
	});