1jQuery(document).ready(function($) { 2 3 gsap.registerPlugin(ScrollTrigger); 4 5 var tl = new TimelineMax(); 6 7 const nav = gsap.utils.toArray('.join-our-team-scrollable-sections .sticky ul li'); 8 const sections = gsap.utils.toArray('.join-our-team-scrollable-sections .block'); 9 10 sections.forEach((section,index) => { 11 gsap.to(section, { 12 scrollTrigger: { 13 start: 'top 250px', 14 end: 'bottom 250px', 15 trigger: section, 16 toggleClass: { targets: nav[index], className: 'active' }, 17 //markers: true, 18 }, 19 }); 20 }); 21 22 gsap.utils.toArray(".parallaxed-image .parallax-inner").forEach((section, i) => { 23 24 const heightDiff = section.offsetHeight - section.parentElement.offsetHeight; 25 26 gsap.fromTo(section,{ 27 y: -heightDiff // Start at position 28 }, { 29 scrollTrigger: { 30 trigger: section.parentElement, 31 scrub: true, 32 start: 'top 100%', 33 end: 'bottom 0', 34 invalidateOnRefresh: true, 35 }, 36 y: 0, 37 ease: "none" 38 }); 39 }); 40 41 /** 42 * Trigger count up when we scroll into its section on the front page 43 44 var numbers = gsap.utils.toArray(".figure-wrapper .count-up").forEach( number => { 45 tl.to(number, { 46 scrollTrigger: { 47 trigger: number, 48 start: 'bottom 10%', 49 end: 'bottom 50%', 50 onEnter: function() { 51 52 var start = 0; 53 var val = parseInt( number.attributes["data-number"].value ); 54 55 var timer = setInterval(function() { 56 if( start <= val ) { 57 $(number).html( start ); 58 start++; 59 } else { 60 clearInterval( timer ); 61 } 62 }, 1 ); 63 64 }, 65 }, 66 }); 67 }); 68 */ 69 70});
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.