Round Buttons2
Rounded box with color animation, READY for addition of logo, social buttons.
by Koubenec
HTML
<div class="corners">
<div class="cornertext" onclick="top.location.href='http://www.google.com'">Main Site</div>
</div>
<div class="corners">
<div class="cornertext" onclick="top.location.href='http://www.google.com'">Mobile</div>
</div>
<div class="corners">
<div class="cornertext" onclick="top.location.href='http://www.google.com'">What I Believe</div>
</div>
<div class="corners">
<div class="cornertext" onclick="top.location.href='http://www.google.com'">Donate</div>
</div>
CSS
.corners{
position:relative;
background:#fff;
width:220px;
height: 40px;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
margin-bottom:3px;
margin-top:3px;
text-align: center;
color:#8B5E3C;
cursor: pointer;
}
.cornertext {
font: Times New Roman;
font-style: italic;
font-weight: regular;
font-size: 25px;
height:50px;
position: inherit;
top:5px;
left:0px;
}
JavaScript
$(document).ready(function() {
$(".corners").hover(function() {
$(this).stop().animate({
"backgroundColor": "#8B5E3C",
"color": "#fff"
}, 'fast');
}, function() {
$(this).stop().animate({
"backgroundColor": "#fff",
"color": "#8B5E3C"
}, 'fast');
});
});