Didnt seem to work, I need to stop the fades I have going on because they have a delay on them. Any idea how to apply the stop() to a fade, i tried this but it didnt work:
$(document).ready(function() {
// Reset Nav Icons if logo is clicked
$("#logo").bind("click",function() {
$("#nav_portfolio").animate({ left: "711px" }, 500, "easeOutCirc");
$("#nav_about").animate({ left: "778px" }, 500, "easeOutCirc");
$("#nav_services").animate({ left: "846px" }, 500, "easeOutCirc");
$("#nav_contact").animate({ left: "909px" }, 500, "easeOutCirc");
$("#loader").stop();
$(".content_wrap").fadeOut();
$("#loader").fadeIn().fadeTo(2000, 1).fadeOut(1000, function() {
$(this).fadeOut();
$("#content_home").fadeIn();
});
});
// Navigation sliding effect, page swap functions
$("#nav_portfolio").bind("click",function() {
$("#nav_portfolio").animate({ left: "157px" }, 500, "easeOutCirc");
$("#nav_about").animate({ left: "778px" }, 500, "easeOutCirc");
$("#nav_services").animate({ left: "846px" }, 500, "easeOutCirc");
$("#nav_contact").animate({ left: "909px" }, 500, "easeOutCirc");
$("#loader").stop();
$(".content_wrap").fadeOut();
$("#loader").fadeIn().fadeTo(2000, 1).fadeOut(1000, function() {
$(this).fadeOut();
$("#content_portfolio").fadeIn();
});
});
$("#nav_about").bind("click",function() {
$("#nav_portfolio").animate({ left: "157px" }, 500, "easeOutCirc");
$("#nav_about").animate({ left: "224px" }, 500, "easeOutCirc");
$("#nav_services").animate({ left: "846px" }, 500, "easeOutCirc");
$("#nav_contact").animate({ left: "909px" }, 500, "easeOutCirc");
$("#loader").stop();
$(".content_wrap").fadeOut();
$("#loader").fadeIn().fadeTo(2000, 1).fadeOut(1000, function() {
$(this).fadeOut();
$("#content_about").fadeIn();
});
});
$("#nav_services").bind("click",function() {
$("#nav_portfolio").animate({ left: "157px" }, 500, "easeOutCirc");
$("#nav_about").animate({ left: "224px" }, 500, "easeOutCirc");
$("#nav_services").animate({ left: "292px" }, 500, "easeOutCirc");
$("#nav_contact").animate({ left: "909px" }, 500, "easeOutCirc");
$("#loader").stop();
$(".content_wrap").fadeOut();
$("#loader").fadeIn().fadeTo(2000, 1).fadeOut(1000, function() {
$(this).fadeOut();
$("#content_services").fadeIn();
});
});
$("#nav_contact").bind("click",function() {
$("#nav_portfolio").animate({ left: "157px" }, 500, "easeOutCirc");
$("#nav_about").animate({ left: "224px" }, 500, "easeOutCirc");
$("#nav_services").animate({ left: "292px" }, 500, "easeOutCirc");
$("#nav_contact").animate({ left: "355px" }, 500, "easeOutCirc");
$("#loader").stop();
$(".content_wrap").fadeOut();
$("#loader").fadeIn().fadeTo(2000, 1).fadeOut(1000, function() {
$(this).fadeOut();
$("#content_contact").fadeIn();
});
});
});