Skip to content

Instantly share code, notes, and snippets.

@hilukasz
Created May 23, 2012 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hilukasz/2775417 to your computer and use it in GitHub Desktop.
Save hilukasz/2775417 to your computer and use it in GitHub Desktop.
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