var firstString = ["This ", "is ", " me."]; var firstPara = document.querySelector("#firstPara"); var distanceSoFar = (document.body.scrollTop); window.addEventListener("scroll", function (){ setInterval(slideIn, 450); }); function slideIn(){ if (distanceSoFar > "130") { for (var i = 0; i < firstString.length; i++) { var stringOut = firstString.shift(); firstPara.innerHTML += stringOut; } }};
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)