From 766e768fd0de3168c37c297e41162349f0a8f8a6 Mon Sep 17 00:00:00 2001 From: Leandro Lopez <96090997+musrex@users.noreply.github.com> Date: Sat, 1 Jun 2024 05:53:17 -0400 Subject: [PATCH] Fix spin function syntax for Svelte tutorial auto-grader (#626) Corrected arrow function syntax to include missing parenthesis around the "t" parameter and added semicolon after the last backtick in returned CSS string. The auto-grader expects both. --- .../02-transitions/04-custom-css-transitions/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/README.md b/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/README.md index 30dc666bf..e10576f8c 100644 --- a/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/README.md +++ b/content/tutorial/02-advanced-svelte/02-transitions/04-custom-css-transitions/README.md @@ -53,7 +53,7 @@ We can get a lot more creative though. Let's make something truly gratuitous: function spin(node, { duration }) { return { duration, - css: t => +++{ + css: (t) => +++{ const eased = elasticOut(t); return ` @@ -62,7 +62,7 @@ We can get a lot more creative though. Let's make something truly gratuitous: ${Math.trunc(t * 360)}, ${Math.min(100, 1000 * (1 - t))}%, ${Math.min(50, 500 * (1 - t))}% - );` + );`; }+++ }; }