Im trying to have my background fade in onclick with jquery and im unsure on how to do it. Here is my code:
$(".work").click( function(){
$("body").removeClass('bg2 , bg3').addClass("bg1");
});
$(".about").click( function(){
$("body").removeClass("bg1 , bg3").addClass("bg2");
});
$(".contact").click( function(){
$("body").removeClass("bg1 , bg2").addClass("bg3");
});
thanks :D