Skip to content

Instantly share code, notes, and snippets.

@dara
Created June 25, 2011 12:19
Show Gist options
  • Save dara/1046422 to your computer and use it in GitHub Desktop.
Save dara/1046422 to your computer and use it in GitHub Desktop.
Scroll To
$('.linked_to_projects').click(function(){
$('html, body').animate({
scrollTop: $("#projects").offset().top
}, 750);
});
$('#projects ul li img').click(function(){
$('html, body').animate({
scrollTop: $("#projects-show").offset().top
}, 750);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment