Created
May 13, 2014 07:44
-
-
Save jwebcat/4d1f95653b3ccab6a90c to your computer and use it in GitHub Desktop.
Revisions
-
jwebcat created this gist
May 13, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // scroll to div $(function($){ $('a.nav').click(function() { var $this = $(this), _href = $this.attr('href'), dest = $(_href).offset().top; $("html:not(:animated),body:not(:animated)").animate({ scrollTop: dest}, 400 ); return false; }); });