I've got two timelines, one to display a set of elements, one to hide them again (different orders/durations/eases etc), most of the elements are SVG.
When using the AttrPlugin I'm running into an issue I'm not sure how to resolve: If one timeline overrides the other, properties that are contained in tweens that haven't yet started (ie their delay is greater than the current playhead position) get set to undefined by the second timeline, rather than starting at their current value.
Concrete example
Timeline 1 will tween x2 on elementA from 0 to 400 between 2s and 4s.
Timeline 2 will tween x2 on elementA from 400 to 0 between 0s and 1s.
If Timeline 2 is triggered before Timeline1 his 2s, Timeline2 will set x2 to undefined, after which neither timeline will set it again. If Timeline2 is triggered after the 2s, everything is fine.
Trawling through stacktraces it seems that this._firstPT is set to null for the properties that cause the error. It may be related to the fact I'm creating each timeline from scratch each time they're triggered but I'm not sure how else to do it - I can't just reverse, they're quite different transitions and if I try and reuse I can't work how to properly reset the position of the 'in' transition when the 'out' is triggered - both can repeatedly partially overlap each other.