Skip to content

Instantly share code, notes, and snippets.

@jeremydw
Created September 20, 2020 19:39
Show Gist options
  • Save jeremydw/c289c5a2f59e9a659b01367ff4a27f1b to your computer and use it in GitHub Desktop.
Save jeremydw/c289c5a2f59e9a659b01367ff4a27f1b to your computer and use it in GitHub Desktop.
var el = document.createElement('script');
el.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js';
document.body.appendChild(el);
var el2 = document.createElement('script');
el2.src = 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js';
document.body.appendChild(el2);
el2.addEventListener('load', function() {
$('html, body').animate({
scrollTop: 3495
}, 2000, 'easeOutCubic');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment