So I have played the video using scrollTrigger but what i want to do next is after the video has stopped I want to scale the video on Scroll. What i end up doing is scaling and playing the video at the same time using a the initial scrolltrigger.
const kill = gsap.context(() => {
//for pinning
gsap.to(SectionPlay, {
scrollTrigger: {
trigger: SectionPlay,
onEnter: () => VideoPlay.play(),
start: "top+=5 top",
pin: true,
markers: true,
},
})
}, SectionPlay)
return () => kill.revert();