1 2"use strict"; 3var elements = document.getElementsByClassName('zeever-animate'); 4 5function playAnimation(element) { 6 if ( element.getBoundingClientRect().top > 0 && element.getBoundingClientRect().top <= (window.innerHeight * 0.75) ) { 7 element.classList.add('zeever-animate-init'); 8 } 9} 10 11for (let element of elements) { 12 window.addEventListener('load', function() { 13 playAnimation(element); 14 }); 15 window.addEventListener('scroll', function() { 16 playAnimation(element); 17 }); 18}
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.