@tiddo/on-insert
v1.0.1
Published
Module to detect insertion of DOM elements.
Downloads
2
Readme
Module to detect insertion of DOM elements.
Usage
import onInsert from 'on-insert';
onInsert(`my-component`, (el) => {
console.log("Insert new my-component:", el);
});
Browser support:
Any browser that supports keyframes:
- Chrome >= 4.0
- IE >= 10
- Firefox >= 5.0
- Safari >= 4.0
- Opera >= 12.1