Sample for-loop iteration with classic JavaScript.
var items = document.getElementsByClassName("MyClassName");
for (var i in items) {
items[i].style="display:block;";
items[i].className="";
}
If you notice that your website is a little bit boring then maybe a little animation might help to make certain elements do a little fading or animation as it comes visible in the viewport.
To determine the mouse scroll event like scroll-up or scroll-down, we need a little bit of JavaScript to accomplish the task.