From 59390b551bbecef54ee8aaeb500d14ec36963005 Mon Sep 17 00:00:00 2001 From: Sandro Kock Date: Mon, 5 Sep 2016 13:53:39 +0200 Subject: [PATCH] cascaded-animation without first delay --- animations/cascaded-animation.html | 2 +- test/cascaded-animation.html | 77 ++++++++++++++++++++++++++++++ test/index.html | 2 + 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 test/cascaded-animation.html 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' ]);