var currentOpenItem, | |
lastOpenItem, | |
isOpen = false, | |
myHeight = 44, | |
headerNav = $('.header-nav'), | |
closeDiv = $('#close'); | |
$(".team .thumb").show(); | |
// close .header-nav bar | |
$('#menu-item-653').click(function() { | |
$('header').animate({ marginTop: '+=330' }, 500, function() { | |
$('.header-nav #branding').hide('fast', function() { | |
$('.menu-main-container').hide('fast'); | |
closeDiv.fadeIn('slow', function() { | |
}); | |
if (isOpen) { | |
headerNav.animate({ height: '-='+myHeight }, 500); | |
isOpen = false; | |
} | |
}); | |
}); | |
}); | |
//open .header-nav bar | |
closeDiv.click(function() { | |
closeDiv.hide('fast', function() { | |
$('.menu-main-container').show('fast'); | |
$('.header-nav #branding').show('fast'); | |
$('header').animate({ marginTop: '-=330' }, 500); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment