loading code fetching the highlighted snippet
useInView(getter, options) returns a reactive boolean reflecting whether the observed element is intersecting its root. Scroll the panel — the top card toggles on every entry, the bottom card latches once.
IntersectionObserver on the resolved root and re-uses it across bindings.once: true latches: once the observer reports the element as visible,
the store is pinned at true forever (well, until unmount). The bottom card
uses this — useful for one-shot reveal animations.once, the store flips back to false when the
element scrolls out. Combine with whileInView on motion elements when you
want the animation tied directly to viewport — this hook is for non-motion logic.Scroll the panel below.