inviewtrigger
Reactive icon

InViewTrigger

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 3 Jun (5 hours ago)
 by 
0.0
 (0 ratings)
inviewtrigger

InViewTrigger

Details
Observes a DOM element and triggers OutSystems client actions when it enters or leaves the viewport.
Read more

InViewTrigger uses the browser's IntersectionObserver API to monitor when a DOM element becomes visible or hidden within the viewport. When the element crosses the defined visibility threshold, it dispatches the corresponding callback, allowing OutSystems developers to react to scroll-driven visibility changes without polling or manual scroll event handling.

It supports independent thresholds for enter and leave events, a one-shot mode that automatically disconnects all observers after the first trigger, and safe re-invocation that cleans up any previous observers before registering new ones.

Common use cases include triggering animations when an element enters the screen, lazy loading content, firing analytics events on element visibility, or toggling UI states based on scroll position.

Release notes (1.0.0)
License (1.0.0)

BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)

Reviews (0)
Team
Other assets in this category