1.0.2 • Published 4 years ago

scrolltome v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

scrolltome

Library to manage if an element is in ViewPort

  1. Install
npm install scrolltome
  1. Usage
scrolltome.subscribe({
    element: document.getElementById('section1'),
    inViewPortHandler: (data) => console.log(data),
    outOfViewPortHandler: (data) => console.log(data),
    repeat: 'FIRST_OUT',
});
  1. Development
npm run dev

This watches files and compiles them

  1. Run tests
npm run dev
npm start // or node server.js
npm test

npm run dev should be running to watch and recompile files.

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago