diff --git a/animations/cascaded-animation.html b/animations/cascaded-animation.html index 5399753..4edc03c 100644 --- a/animations/cascaded-animation.html +++ b/animations/cascaded-animation.html @@ -58,7 +58,7 @@ var oldDelay = config.timing.delay; var abortedConfigure; for (var node, index = 0; node = nodes[index]; index++) { - config.timing.delay += nodeDelay; + config.timing.delay = oldDelay + nodeDelay * index; config.node = node; var animation = document.createElement(config.animation); diff --git a/test/cascaded-animation.html b/test/cascaded-animation.html new file mode 100644 index 0000000..1d1c8aa --- /dev/null +++ b/test/cascaded-animation.html @@ -0,0 +1,77 @@ + + + + + + cascaded-animation tests + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/index.html b/test/index.html index 81555a2..9b8973a 100644 --- a/test/index.html +++ b/test/index.html @@ -21,6 +21,8 @@ 'neon-animated-pages-lazy.html?dom=shadow', 'neon-animated-pages-descendant-selection.html', 'neon-animated-pages-descendant-selection.html?dom=shadow', + 'cascaded-animation.html', + 'cascaded-animation.html?dom=shadow' ]);