This javascript code snippet is to add a class to an element after the page is finished loading the DOM. One possible use is so that the CSS animation that we create can be seen in the hero section because it will be executed after the visitor sees the screen, for example, we combine it with the CSS effect to enlarge the element.
var $headline = jQuery(".headline"); jQuery(window).ready(function(){ $headline.addClass("grow"); });