Created
February 15, 2017 06:49
-
-
Save ckschmieder/eb2f8e0245a14d8bd9945edbb3150b50 to your computer and use it in GitHub Desktop.
Test code for mob nav improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".site-header a.category-link").click(function(){ | |
$("p").removeClass("expanded"); | |
}); | |
$(".site-header a.homeAnchor").click(function(e){ | |
e.preventDefault(); | |
setTimeout(function(){ | |
$(".header-nav-container").delay(1800).removeClass("expanded"); | |
$(".mobile-nav-button").delay( 1800 ).removeClass("expanded"); | |
}, 500); | |
}); | |
$("#info-text").delay(500).queue(function(next) { | |
$(this).addClass("info-text-active"); | |
next(); | |
}); | |
$(.mobile-nav-button).trigger('click'); | |
$(".site-header a.homeAnchor").click(function(){ | |
setTimeout(function(){ | |
$(".header-nav-container").removeClass("expanded"); | |
$(".mobile-nav-button").removeClass("expanded"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment