Skip to content

Instantly share code, notes, and snippets.

View CodeNinja96x's full-sized avatar
🎯
Focusing

Prafful Patil CodeNinja96x

🎯
Focusing
View GitHub Profile
let scrollerID;
let paused = true;
let speed = 3; // 1 - Fast | 2 - Medium | 3 - Slow
let interval = speed * 5;
function startScroll(){
let id = setInterval(function() {
window.scrollBy(0, 2);
if ((window.innerHeight + window.scrollY) >= document.body.offsetHeight) {
@CodeNinja96x
CodeNinja96x / array.extensions.md
Created June 22, 2021 10:38 — forked from rwaldron/array.extensions.md
Array.from and Array.of