Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

scroll-actions

Actions on scrolling to an element

import scrollActions from 'scroll-actions'

scrollActions({
  actions: [
    {
      selectors: ['#some-element'],
      onEnter: (el) => {
        // #some-element entered view
      },
      onLeave: (el) => {
        // #some-element left view
      },
    },
  ]
})

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published