-
-
Save nibalizer/e8de0a635f594a98e7a39cee47a553b0 to your computer and use it in GitHub Desktop.
This file contains 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
function get_random(arr){ return arr[Math.floor(Math.random()*arr.length)];} | |
setInterval(function(){ | |
var elements = document.getElementsByClassName("developer--card__block_link"); | |
get_random(elements).scrollIntoView({ behavior: 'smooth', block: 'center' }); | |
}, 2500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment