scroll-actions
v0.1.1
Published
Actions on scrolling to an element
Downloads
3
Readme
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
},
},
]
})