fix bidi transition bug

pull/1971/head
Richard Harris 7 years ago
parent 97ae7dd4a9
commit 1f6d0221e2

@ -235,8 +235,9 @@ export function create_bidirectional_transition(node, fn, params, intro) {
pending_program = program; pending_program = program;
} else { } else {
// if this is an intro, and there's a delay, we need to do // 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) { if (css) {
clear_animation();
animation_name = create_rule(t, b, duration, easing, css); 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`; node.style.animation = (node.style.animation ? `${node.style.animation}, ` : '') + `${animation_name} ${duration}ms linear ${delay}ms 1 both`;
} }

Loading…
Cancel
Save