textlen = textbottom - texttop;
progress = (window.scrollY - texttop) / textlen;
progress = Math.max(0, Math.min(progress, 1))
textlen = textbottom - texttop;
progress = (window.scrollY - texttop) / textlen;
progress = Math.max(0, Math.min(progress, 1))