[docs] fix #each in window-bindings example (#7181)

pull/7194/head
Rene Kootstra 3 years ago committed by GitHub
parent 883dfecb3c
commit 4a78137a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@
<svelte:window bind:scrollY={y}/> <svelte:window bind:scrollY={y}/>
<a class="parallax-container" href="https://www.firewatchgame.com"> <a class="parallax-container" href="https://www.firewatchgame.com">
{#each [0, 1, 2, 3, 4, 5, 6, 7, 8] as layer} {#each layers as layer}
<img <img
style="transform: translate(0,{-y * layer / (layers.length - 1)}px)" style="transform: translate(0,{-y * layer / (layers.length - 1)}px)"
src="https://www.firewatchgame.com/images/parallax/parallax{layer}.png" src="https://www.firewatchgame.com/images/parallax/parallax{layer}.png"

Loading…
Cancel
Save