1window.addEventListener('scroll', function () { 2 var element = document.getElementById('my-svg-sec'); 3 if (element) { 4 var position = element.getBoundingClientRect(); 5 if (position.top <= window.innerHeight && position.bottom >= 0) { 6 element.classList.add('is-animated-sec'); 7 } else { 8 element.classList.remove('is-animated-sec'); 9 } 10 } 11 var element2 = document.getElementById('my-svg-3'); 12 if (element2) { 13 var position2 = element2.getBoundingClientRect(); 14 if (position2.top <= window.innerHeight && position2.bottom >= 0) { 15 element2.classList.add('is-animated'); 16 } else { 17 element2.classList.remove('is-animated'); 18 } 19 } 20 21 var element3 = document.getElementById('my-svg'); 22 if (element3) { 23 var position3 = element3.getBoundingClientRect(); 24 if (position3.top <= window.innerHeight && position3.bottom >= 0) { 25 element3.classList.add('is-animated'); 26 } else { 27 element3.classList.remove('is-animated'); 28 } 29 } 30});
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.