From 1f6d0221e2ff9333509008e390ce620946afb517 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Thu, 10 Jan 2019 23:16:24 -0500 Subject: [PATCH] fix bidi transition bug --- src/internal/transitions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal/transitions.js b/src/internal/transitions.js index 3366153dda..61d383bb99 100644 --- a/src/internal/transitions.js +++ b/src/internal/transitions.js @@ -235,8 +235,9 @@ export function create_bidirectional_transition(node, fn, params, intro) { pending_program = program; } else { // if this is an intro, and there's a delay, we need to do - // and initial tick and/or apply CSS animation immediately + // an initial tick and/or apply CSS animation immediately if (css) { + clear_animation(); animation_name = create_rule(t, b, duration, easing, css); node.style.animation = (node.style.animation ? `${node.style.animation}, ` : '') + `${animation_name} ${duration}ms linear ${delay}ms 1 both`; }