I am trying to fadeIn/fadeOut my hyperlinks. I have used fadeTo() as opposed to fadeOut seeing that fadeOut gets rid of the hyperlink. With fadeTo, that is not the case, the hyperlink is still there but with a very low opacity value. I was wondering if it was possible to fade out the a.active background and still be able to see the text and the underlying background of the body
var fade_to = function() {
$("a.active").fadeTo("slow", 0.0001);
};
$(document).ready(function() {
$("a.active").css("display", "none").fadeIn(2000);
var intervalId = window.setInterval(fade_to, 5000);
});
a.active {
background: #ff0000;
width: 246px;
height: 47px;
padding-top: 3px;
color: #ffffff;
}
body {
background: #000000
}