Skip to content

Instantly share code, notes, and snippets.

@iftee
Created October 25, 2020 13:58
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 iftee/9ab6a2cb593abe1367ae29d08eed4a32 to your computer and use it in GitHub Desktop.
Save iftee/9ab6a2cb593abe1367ae29d08eed4a32 to your computer and use it in GitHub Desktop.
A tiny jQuery snippet for auto page scroll during video capture of prototype
var scrollSpeed = 30000; // how fast the the page will be scrolled down to bottom in millisecond, change it based on your page height
var offsetTime = 10000; // an delay in in millisecond after which the page will start scrolling, change it based on your time to change window and go full-screen after you turn on recording
function scrollDownForVideoCapture() {
setTimeout(function() {
$('html, body').animate({ scrollTop: $(document).height() }, scrollSpeed)
}, offsetTime);
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment