I'm trying to stagger my AnimationSequence
with a negative delay but the endDelay
property does nothing when I use it on the AnimationSequence:
var el = this.shadowRoot.querySelectorAll('.nav-item');
var animations = [];
for (var i = 0; i < el.length; i++) {
animations.push(el[i].animationGroupIn);
}
this.animationSequence = new AnimationSequence(animations, {endDelay: -100});
document.timeline.play(this.animationGroup);
el[i].animationGroupIn
is an AnimationGroup that contains two Animations.
I did manage to get it to stagger with a negative endDelay
by modifying the Web Animations-next source (web-animations-js/src/animation-constructor.js - line 17-19):
function groupChildDuration(node) {
return node._timing.delay + node.activeDuration + node._timing.endDelay - 100;
};
Is there a public property for AnimationSequence so Animations can be overlapped to make the animations appear more fluid?