Hello guys,
I am stuck in a really bad situation and cant find a solution of it. So what I am trying to achieve is that I want to play a video smoothly on scrollTrigger scrub but that is not happening. The video is playing very choppily. I have a created a minimal codesandbox for you guys to have a look
https://codesandbox.io/s/gracious-sunset-0xsvr?file=/src/pages/index.jsx
Please help me as I am stuck on this for 2 days
Thanks
Yep, I bet Blake is right - the video MUST be encoded with very frequent keyframes so that you can jump around smoothly. This has nothing to do with GSAP - it's the nature of video encoding. When you encode your video that way, it'll also increase the file size because it must use more keyframes. I'd encourage you to research how encoding works and keyframe placement during the encoding process. You might want to try switching to that other technique Blake mentioned and see if that works better