Viewport Checker

Little utility to detect if elements are currently within the viewport

Viewport checker documentation

                                
const vpc = new ViewportChecker('.dummy');
document.addEventListener('DOMContentLoaded', () => vpc.attach());