how to fade out links apart from the currently active one?
Hi.
I have 4 links. When i click on one of the links i want the other three to fade out a small amount.
I have put together this small code...
-
$(document).ready(function(){
$("#tabs a").click(function(){
$("#tabs a").fadeTo(1, 0.5);
$(this).fadeTo(1, 1.0);
});
});
This does the job.
However, i have to set the fade time to 1 milisecond otherwise the current link would have to wait for the other links to fade out before it fades back in.
I want the other links to fade out slowly!
I have looked in the .siblings() method and have tried a few thing but cant seem to get it to work.
Can someone please offer some sugguestions?
Thanks.