Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Fix spin function syntax for Svelte tutorial #626

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 `
Expand All @@ -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))}%
);`
);`;
}+++
};
}
Expand Down