From 0598c989a03f1a5c7b67f2dac9dc09de7c42c34a Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 14 Feb 2023 16:57:07 +0000 Subject: [PATCH] docs: corrects syntax error in transition code sample (#8169) Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- site/content/docs/03-template-syntax.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/site/content/docs/03-template-syntax.md b/site/content/docs/03-template-syntax.md index 012faeadf8..31e712229e 100644 --- a/site/content/docs/03-template-syntax.md +++ b/site/content/docs/03-template-syntax.md @@ -1307,14 +1307,12 @@ A custom animation function can also return a `tick` function, which is called * const d = Math.sqrt(dx * dx + dy * dy); return { - delay: 0, - duration: Math.sqrt(d) * 120, - easing: cubicOut, - tick: (t, u) => - Object.assign(node.style, { - color: t > 0.5 ? 'Pink' : 'Blue' - }); - }; + delay: 0, + duration: Math.sqrt(d) * 120, + easing: cubicOut, + tick: (t, u) => + Object.assign(node.style, { color: t > 0.5 ? 'Pink' : 'Blue' }) + }; }