Skip to content

Commit d423430

Browse files
committed
[web-animations-1] Escape template string delimeters in code samples
1 parent dd0c514 commit d423430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web-animations-1/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@ the style as illustrated below:
24292429

24302430
<div class="example"><pre class="lang-javascript">
24312431
// In the first frame after the following animation finishes, the callback for
2432-
// the `finished` promise will run BEFORE style is updated and hence will NOT
2432+
// the \`finished\` promise will run BEFORE style is updated and hence will NOT
24332433
// flicker.
24342434
elem.animate({ transform: 'translateY(100px)' }, 200).finished(() => {
24352435
elem.style.transform = 'translateY(100px)';
@@ -2455,11 +2455,11 @@ For example:
24552455
<div class="example"><pre class="lang-javascript">
24562456
elem.addEventListener('click', async evt => {
24572457
const animation = elem.animate(
2458-
{ transform: `translate(${evt.clientX}px, ${evt.clientY}px)` },
2458+
{ transform: \`translate(${evt.clientX}px, ${evt.clientY}px)\` },
24592459
{ duration: 800, fill: 'forwards' }
24602460
);
24612461
await animation.finished;
2462-
// commitStyles will record the style up to and including `animation` and
2462+
// commitStyles will record the style up to and including \`animation\` and
24632463
// update elem's specified style with the result.
24642464
animation.commitStyles();
24652465
animation.cancel();
@@ -3869,7 +3869,7 @@ For example, consider the following code:
38693869
<div class="example"><pre class="lang-javascript">
38703870
elem.addEventListener('mousemove', evt => {
38713871
circle.animate(
3872-
{ transform: `translate(${evt.clientX}px, ${evt.clientY}px)` },
3872+
{ transform: \`translate(${evt.clientX}px, ${evt.clientY}px)\` },
38733873
{ duration: 500, fill: 'forwards' }
38743874
);
38753875
});

0 commit comments

Comments
 (0)