Reliable viewport tracking without missed targets, unlike the built-in IntersectionObserver API.
PronotronIO uses a single flattened TypedArray to store and update the data of IO nodes.The package is not tied to scroll events; with every PronotronIO.handleScroll() request, it iterates over the table and processes events.
Since the package is not coupled with scroll events, any scrolling logic (e.g., smooth scrolling) can be implemented.
Following demo executes scroll in RequestAnimationFrame and do not uses a throttle function which would utilized in the production. Performance can be tracked with stats.
0
0
Last recorded event:
Normalized Position: 0.00
0
0
Last recorded event: