scrolltome
v1.0.2
Published
Library to manage if an element is in ViewPort
Downloads
2
Readme
scrolltome
Library to manage if an element is in ViewPort
- Install
npm install scrolltome
- Usage
scrolltome.subscribe({
element: document.getElementById('section1'),
inViewPortHandler: (data) => console.log(data),
outOfViewPortHandler: (data) => console.log(data),
repeat: 'FIRST_OUT',
});
- Development
npm run dev
This watches files and compiles them
- Run tests
npm run dev
npm start // or node server.js
npm test
npm run dev
should be running to watch and recompile files.