svelte/test/js/samples/window-binding-scroll/input.html

3 lines
55 B

<svelte:window bind:scrollY=y/>
<p>scrolled to {y}</p>