Share Posted November 28, 2022 Hello Dear Forum, I am trying to do a certain operation. I am extending a codepen of https://codepen.io/shshaw witch allows you to scrub video with scrollTrigger to achive effect of "going" thru timeline via scroll. Goal: I added data-attributes to each slide with value that in my mind represents a second of main video to display text and I want to force the particular slide text to display in given second. (If the video is in 4th second display slide1 text and so on.) Question: How can I add simple tween .from() to text and place it in particular place of videoTimeline I know that have values like `progress` and `videoDuration` available in`onUpdate` callback of videoTimeline but i am not so sure how can i use them. Should I create separate timeline just for text with a duration of it coresponding to video timeline ? Codepen icnluded Cheers See the Pen zYaLvzr by dzunik91 (@dzunik91) on CodePen Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now