Jump to content
Search Community

use frames as duration instead of seconds

thetobiterra test
Moderator Tag

Recommended Posts

Hello, i wanna know if it's possible to use the amount of image frames as a duration value with gsap. Say, i have an image sequence, 200 frames and i am animating those frames on scroll, i have another timeline with texts popping up at specific frames. Is there a way to make those texts animation frame specific instead of seconds

Link to comment
Share on other sites

3 hours ago, Trapti said:

Hi, 

 

If you can provide a demo, it will be better.  

 

If the image sequence is animating, then calculate the total duration of that timeline and use that as value. "tl.duration();

 

It's the typical apple kinda website. I'm saying since frames are being animated on scrub, there can't be a duration, right? if there isnt a duration, then how is it possible to display a particular text at a specific frame?

Link to comment
Share on other sites

4 hours ago, Trapti said:

Yes, it will still have duration. I have added a console for this example to get the duration. This is using scrub. 

 

 

No, an image sequence plays in frames. Basically, we are animating from frame 0 to frame 200 on scrub. It is not second based. Is there a way to convert frames to seconds and then use absolute positioning to fix text fade in and out animation at specific frames? basically, i need the frame animation as a time reference for the texts fade in and out animation. It's basically the apple website concept. thanks

Link to comment
Share on other sites

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...