Jump to content
Search Community

Recommended Posts

Posted

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!

Posted

Oh, to clarify. I'm setting it's duration to zero when it's supposed to appear during the designated times given. So the tween should not be in the timeline based on time check in the callback. 

Again I welcome suggestions. 

Posted

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. 

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