Created
October 25, 2020 13:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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