Question · Svelte and SvelteKit course · Module 5: Bindings
Window Scroll Position
How do you track the window's scroll position?
Answer options
- <svelte:window bind:scrollY />
- <window bind:scroll />
- window.scrollY in $effect
- bind:scroll on body
You can check the correct answer by solving this task in the CodeWorlds game.