Could someone please help me implement an easing/fading effect on tabs using jQuery? I am looking to add an easing effect to my current code and also incorporate two CSS classes to change the background color along with the text color. Thank you for any assistance.
Jquery:
$(document).ready(function() {
var origColor = $("#links-top-contact a").css("color");
$("#links-top-contact a").hover(function() {
$(this).css({color:'blue'});
},function() {
$(this).css({color:origColor});
});
})
; CSS
#links-top-contact a{
color:#fff;
font-size:30px;
text-decoration:none;
border:1px solid blue;
padding:-5px 10px 10px 10px;
margin-top:20px;
margin-left:20px;
border-radius:25px;
-moz-border-radius:25px;
-webkit-border-radius:25px;
-khtml-border-radius:25px;
background-color:red;
}
HTML:
<br/><div id="links-top-contact"><a href="#">yo</a></div>
This is the jsFiddle.