Skip to content

Instantly share code, notes, and snippets.

@e2kaneko
Created May 13, 2011 04:03
Show Gist options
  • Save e2kaneko/969955 to your computer and use it in GitHub Desktop.
Save e2kaneko/969955 to your computer and use it in GitHub Desktop.
jQuery - スクロール位置を移動
$("html,body").animate(
{scrollTop: $("#element_id").offset().top},
0
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment