https://codepen.io/sikke/pen/YzdvXLw
(I changed to the video u used instead for the example)
Now the codepen is fully scrolltrigger and works as the scrollmagic did. Sorry it didnt feel like I looked at the links but please listen to my question. cause it feels like u ignored it and only cared about it being scrolltrigger. I have this effect where I scroll it scrolls through the video. But I don't want it to work like that fully.
const timeParts = [
// array for planned timestamps.
{ start: 0, end: 9000 }, // 0s to 9s
{ start: 9000, end: 14000 }, // 9s to 14s
{ start: 14000, end: 22000 }, // 14s to 22s
{ start: 22000, end: 35000 }, // 22s to 35s
{ start: 35000, end: 42000 }, // 35s to 42s
{ start: 42000, end: 53000 }, // 42s to 53s
];
I want it to use the array above. and have timestamps. When I scroll it should play the video until the desired stop. and scroll shouldn't work again until it reached between each timeParts item. so when it reaches 9 seconds for example. it should enable scroll to work again. and when i scroll down after that it should play the next part until 14 seconds.