dom-inserted
Listen for DOM node insertion, see detect-node-insertion
Usage
npm i dom-inserted
var domInserted = ; // Listen for elements that have a .inserted classdomInserted; // Listen for elements that have a .custom classdomInserted document; { // ev.detail contains: {animationName: ..., insertedElement: ...} var evDetail = evdetail;}
Standalone
You will need to have node setup on your machine.
Then you can install dependencies and build:
npm i && npm run build
That will output the built distributables to ./build
.
Licence
MIT, see LICENSE.md for details.