hey there hope you guys are having a good day ,
i have a scenario which i should animate a element in while it has a scroll trigger and scrub
lets say the loading state ends and then the box should animate from its original position to some where lets say { y : 0 } -> { y : -100}.
the problem is i want this element to also have this animation with scroll trigger and scrub to true , i searched a lot for the possible ways but none of them worked smoothly until i found this and added a little code to control my animation with it but it might gets a little bit laggy if the user scrolls fast since the onUpdate on gsap tween which i wrote might doesn't run smoothly , does any one have any better solution to achieve my goal ?