Skip to content

Commit 0598c98

Browse files
Lissy93benmccann
andauthored
docs: corrects syntax error in transition code sample (#8169)
Co-authored-by: Ben McCann <[email protected]>
1 parent d7e4b1c commit 0598c98

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

site/content/docs/03-template-syntax.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,14 +1307,12 @@ A custom animation function can also return a `tick` function, which is called *
13071307
const d = Math.sqrt(dx * dx + dy * dy);
13081308
13091309
return {
1310-
delay: 0,
1311-
duration: Math.sqrt(d) * 120,
1312-
easing: cubicOut,
1313-
tick: (t, u) =>
1314-
Object.assign(node.style, {
1315-
color: t > 0.5 ? 'Pink' : 'Blue'
1316-
});
1317-
};
1310+
delay: 0,
1311+
duration: Math.sqrt(d) * 120,
1312+
easing: cubicOut,
1313+
tick: (t, u) =>
1314+
Object.assign(node.style, { color: t > 0.5 ? 'Pink' : 'Blue' })
1315+
};
13181316
}
13191317
</script>
13201318

0 commit comments

Comments
 (0)