INVP-TS Check if elements are in viewport. Install npm i invp-ts Init Use w/e querySelector you want, could be #some_id or [data-something="true"] for example import { InVp } from 'invp'; new InVp('.js-reveal'); Test npm test