1/** 2 * Muteki â Industries: Scroll reveal + staggered grid animation 3 * 4 * @package Muteki 5 * @since 1.0.2 6 */ 7(function () { 8 if (!('IntersectionObserver' in window)) { 9 document.querySelectorAll('.ind-reveal').forEach(function(el) { el.classList.add('is-vis'); }); 10 return; 11 } 12 13 var obs = new IntersectionObserver(function(entries) { 14 entries.forEach(function(e) { 15 if (e.isIntersecting) { 16 e.target.classList.add('is-vis'); 17 obs.unobserve(e.target); 18 } 19 }); 20 }, { threshold: 0.08 }); 21 22 document.querySelectorAll('.ind-reveal').forEach(function(el) { obs.observe(el); }); 23 24 var gridObs = new IntersectionObserver(function(entries) { 25 entries.forEach(function(e) { 26 if (!e.isIntersecting) return; 27 e.target.querySelectorAll('.ind__card').forEach(function(card, i) { 28 setTimeout(function() { card.classList.add('is-vis'); }, i * 90); 29 }); 30 gridObs.unobserve(e.target); 31 }); 32 }, { threshold: 0.08 }); 33 34 var grid = document.querySelector('.ind__grid'); 35 if (grid) gridObs.observe(grid); 36})();
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.