Skip to content

Commit 4a78137

Browse files
[docs] fix #each in window-bindings example (#7181)
1 parent 883dfec commit 4a78137

File tree

1 file changed

+2
-2
lines changed
  • site/content/examples/17-special-elements/03-svelte-window-bindings

1 file changed

+2
-2
lines changed

site/content/examples/17-special-elements/03-svelte-window-bindings/App.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<svelte:window bind:scrollY={y}/>
88

99
<a class="parallax-container" href="https://www.firewatchgame.com">
10-
{#each [0, 1, 2, 3, 4, 5, 6, 7, 8] as layer}
10+
{#each layers as layer}
1111
<img
1212
style="transform: translate(0,{-y * layer / (layers.length - 1)}px)"
1313
src="https://www.firewatchgame.com/images/parallax/parallax{layer}.png"
@@ -85,4 +85,4 @@
8585
padding: 0;
8686
background-color: rgb(253, 174, 51);
8787
}
88-
</style>
88+
</style>

0 commit comments

Comments
 (0)