Skip to content

Commit

Permalink
Change animation to 0
Browse files Browse the repository at this point in the history
This stops the animation and hides the navigation immediately on page
load.
  • Loading branch information
tkenny committed Mar 21, 2012
1 parent 2df14e8 commit ccd6a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -20,10 +20,10 @@
// Change the CSS top value of #site to whatever mobileNavHeight outputs
top: mobileNavHeight + 'px !important'
});
// Scroll the window the height of mobileNavHeight
// Scroll the window the height of mobileNavHeight [animation set at 0 to hide the navigation immediately]
$('html, body').stop().animate({
'scrollTop': $('#site').offset().top
}, 1300, 'swing', function () {
}, 0, 'swing', function () {
window.location.hash = '#site';
});
}
Expand Down

0 comments on commit ccd6a73

Please sign in to comment.