Waypoint Component Trigger
"
vue-waypointis a waypoint component to trigger functions and events based on an element's position on screen. It's a tiny, dependency-free Vue 3 wrapper around the nativeIntersectionObserver."
- Vue 3, written in TypeScript with shipped type declarations
- Zero runtime dependencies — a thin wrapper over the native IntersectionObserver
- ESM + CJS builds (tree-shakable) with correct exports
- Flexible: custom tag, custom observer options, reactive active toggle
- Optional CSS helper classes for quick, configuration-free animations
- Slot support exposing the live waypoint state
- useWaypoint composable for observing any template ref directly
- SSR-safe
Marco Boffo
@scaccogatto