Relatora Posted December 8, 2019 Share Posted December 8, 2019 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 More sharing options...
Relatora Posted December 8, 2019 Author Share Posted December 8, 2019 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. Link to comment Share on other sites More sharing options...
GreenSock Posted December 9, 2019 Share Posted December 9, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now