Watches elements and calls some code when they come into view
npm i @dankolz/scroll-watch
const ScrollWatch = require('@dankolz/scroll-watch')
let sw = new ScrollWatch('.project-box', {
visibleBy: 300
})
sw.start()
By default, the handler code will add the class visible
to the element.