Created
September 14, 2025 18:15
-
-
Save itseduvieira/7bdc710bedc40fd0dc37dccad3fe6202 to your computer and use it in GitHub Desktop.
Autoscroll website script
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
| setTimeout(() => { | |
| (function () { | |
| var jq = document.createElement('script'); | |
| jq.src = 'https://code.jquery.com/jquery-3.6.0.min.js'; | |
| jq.onload = function () { | |
| var easing = document.createElement('script'); | |
| easing.src = 'https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js'; | |
| easing.onload = function () { | |
| $(function () { | |
| $('html, body').animate({ | |
| scrollTop: $(document).height() - $(window).height() | |
| }, 20000, "linear"); // "linear or swing" | |
| }); | |
| }; | |
| document.head.appendChild(easing); | |
| }; | |
| document.head.appendChild(jq); | |
| })(); | |
| }, 10000); // delay time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment