gsap.registerPlugin(ScrollTrigger) ScrollTrigger.create({ trigger: '.holdMe', animation: gsap.fromTo('.holdMe .resizeMe img', {scale:.8, borderRadius:30 }, {scale: 1, borderRadius:0 }), pin: false, scrub: 1, start: "top top", end: "+=1000" }) gsap.registerPlugin(ScrollTrigger) ScrollTrigger.create({ trigger: '.holdMe', animation: gsap.fromTo('.holdMe .txtBox', { y: 0, opacity:0}, { y: -150, x:0, opacity:1}), pin: true, scrub: 1, end: "+=2000" }) ScrollTrigger.create({ trigger: '.holdMe', animation: gsap.fromTo('.holdMe .more', { y: 0, x:-80, opacity:0}, { y: 0, x:50, opacity:1}), pin: false, scrub: 1, end: "+=3000" }) //animation: gsap.fromTo('.resizeMe img', {scale:.81 }, {scale: 1}), // gsap.to('.txt', { duration: 3, x: 200, rotate: 720, scale: 1.3,}),