Permalink
Browse files

Change animation to 0

This stops the animation and hides the navigation immediately on page
load.
  • Loading branch information...
1 parent 2df14e8 commit ccd6a73e4e598a10bfd2f2328890e6c4abf3b6b4 @tkenny committed Mar 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.html
View
@@ -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';
});
}

0 comments on commit ccd6a73

Please sign in to comment.