Jump to content
Search Community

Dynamically alter tweens and time line in realtime

Relatora test
Moderator Tag

Recommended Posts

Hi,

Currently I'm in the midst of a project that requires me to show videos sequentially during certain times within certain days of the week. I bumped into this library and it's gorgeous timeline.

However whenever I set the duration of a tween (video) on an onStart callback to zero an inconvenient gap of it original duration persists.

 

Is there any way around this problem?

 

Thanks in advance!

Link to comment
Share on other sites

Welcome to the forums, @Relatora

 

I'm not quite sure I understand your question. Are you building a whole timeline and THEN you want to remove something early in the timeline and move all the stuff that's AFTER that backward in time by the amount of the duration of that [removed] animation? If so, shiftChildren() is probably what you want. 

 

A reduced test case in codepen would go a long way in helping us to help you. 

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...