navigationcontroller
z-scrollspyScrollspy
Scroll-driven behavior in two modes: nav highlights links whose sections are in view, and reveal animates elements as they enter the viewport.
Notes
- With
mode/navunset, reveal signals (repeat,delay,no-hidden,animation, orz-animation-*classes) select reveal mode; nav attributes (closest,scroll,offset,active-parent), a nav container (.z-nav,.z-tab,.z-dotnav,.z-thumbnav, etc.), or owned hash links select nav mode; otherwise reveal. - Reveal targets are hidden with
opacity: 0until they enter view, unlessno-hiddenis set or the user prefers reduced motion, which reveals instantly. - Nav mode watches the nearest scrollable ancestor of the targets, or the window; the last target becomes active when the scroll reaches the bottom.