Right now the code that I am using to try and get this to work does not seem to function correctly. h7 represents the element that is fading in while the class of back is the element that is going to fade out when h7 fades in. I hope to get this to work both ways
if ($("h7").css("display", "block")) {
$(".back").hide("fast");
}
else if ($("h7").css("display", "none")) {
$(".back").show(500);
}