public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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);
});
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.