visible-children-observer
v2.0.0
Published
Observes current visible childrens on root element. [Demo](https://saschanaz.github.io/visible-children-observer/)
Downloads
4
Readme
visible-children-observer
Observes current visible childrens on root element. Demo
API
declare class VisibleChildrenObserver {
constructor(_callback?: ((target: HTMLElement) => any) | undefined);
observe(target: HTMLElement): void;
getVisibleChildren(target: HTMLElement): Element[];
unobserve(target: HTMLElement): void;
disconnect(): void;
}