Skip to content

Instantly share code, notes, and snippets.

@VinnyFonseca
Last active December 7, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VinnyFonseca/7786609 to your computer and use it in GitHub Desktop.
Save VinnyFonseca/7786609 to your computer and use it in GitHub Desktop.
FB Page Tab anchor click smooth scroll
function scrollFBTo(y){
FB.Canvas.getPageInfo(function(pageInfo) {
$({y: pageInfo.scrollTop}).animate({
y: y
}, {
duration: 500,
step: function(offset) {
FB.Canvas.scrollTo(0, offset);
}
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment