Skip to content

Instantly share code, notes, and snippets.

@codingwithsara codingwithsara/index.html Secret
Created Jul 15, 2019

What would you like to do?
jQuery ScrollTop-5
if ($(this).scrollTop() > 300) {
} else {
$('html, body').animate({scrollTop:0}, 'slow');
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.