navigationcontrollerz-scrollspy

Scrollspy

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/nav unset, reveal signals (repeat, delay, no-hidden, animation, or z-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: 0 until they enter view, unless no-hidden is 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.