1jQuery(function () { 2 // Initial animation on page load 3 jQuery(document).ready(function () { 4 jQuery("[data-js-animation]").each(function () { 5 let $el = jQuery(this); 6 let attrname = $el.attr("data-js-animation"); 7 8 if ($el.is(":in-viewport") && !$el.hasClass("visible")) { 9 $el.addClass(attrname + " visible"); 10 } 11 }); 12 }); 13 14 // Animation on scroll with offset 15 jQuery(window).on("scroll", function () { 16 jQuery("[data-js-animation]").each(function () { 17 let $el = jQuery(this); 18 let attrname = $el.attr("data-js-animation"); 19 20 if ($el.is(":in-viewport(-120)") && !$el.hasClass("visible")) { 21 $el.addClass(attrname + " visible"); 22 } 23 }); 24 }); 25});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.