Skip to content

Commit 7a185e8

Browse files
committed
Fix code indentation
1 parent f810e60 commit 7a185e8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

demo/scroll-driven-view-transition/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ <h3>The Code</h3>
6868
};</code></pre>
6969
<p>When scrolling back the animations need to play in reverse. This is achieved by reversing the animations and scrubbing from 1 to 0.</p>
7070
<pre><code>if (isReverse) {
71-
for (const anim of getAnimations(document.activeViewTransition)) {
72-
anim.reverse();
73-
}
74-
}</code></pre>
71+
for (const anim of getAnimations(document.activeViewTransition)) {
72+
anim.reverse();
73+
}
74+
}</code></pre>
7575
<hr>
7676
<h3>Functions Used</h3>
7777
<p>This demo uses <code>trackActiveViewTransition</code>, <code>getAnimations</code>, and utilities like <code>pause</code> / <code>scrub</code> to synchronize a View Transition with scroll state:</p>

0 commit comments

Comments
 (0)