Skip to content

Monitor page section views with event listeners for section engagement and disengagement

Notifications You must be signed in to change notification settings

tcouther/SectionViewTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Section View Tracker v1.0

The Section View Tracking Script monitors Y axis scroll events to signal page section engagement. Events listeners are set on sections that trigger when the section element is scrolled in view or out of view.

This functionality can be used to trigger animated effects, analytics data tracking, or asynchronous data fetching.

Events

  • "onEngaged" : When a section is in view or 'engaged'
  • "onUngaged" : When a section is moved out of view or 'disengaged'

On the index page, you'll see a pretty good example of what you can do with a simple implementation.

Hope this saves some time for someone =)

About

Monitor page section views with event listeners for section engagement and disengagement

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published