Hi guys ! I got this code for animating my video, it works fine on Safari, but on Chrome & Firefox, it jumps to some duration suddenly. I am missing something ? ref is an HTML element reference. I am using gsap in a Next app. Thanks !
export function useAnimOnScroll(ref) {
let video = ref.current.querySelector("video")!;
let tl = gsap.timeline({
scrollTrigger: {
trigger: ref.current,
scrub: true,
start: "top top",
end: "bottom top",
markers: true,