Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MuhammedMahdy/2cca4b775f350bc385f1702b3cc4f740 to your computer and use it in GitHub Desktop.
Save MuhammedMahdy/2cca4b775f350bc385f1702b3cc4f740 to your computer and use it in GitHub Desktop.
scrollDown
function scrollDown(selector,speed){
var n = $(selector)[0].scrollHeight;
$(selector).animate({ scrollTop: n }, speed);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment