nam
nam
@ded Can you merge this PR?
as @metonym said, in order to let `IntersectionObserver` works, the `bind:this` element (`div` in your example) must have "visible" pixels initially (height & width must be at least 1px).
It seems @reachtokish is not taking care of this PR anymore, but I want issue #579 to be resolved. @yoyo837 Shall I resubmit another PR?
your code should work checkout this REPL example I made based on your code (just add `threshold` option, background & text color for better visualization while scrolling): https://svelte.dev/repl/60d4410aae7c48fb96b68b220e3495f8?version=3