Skip to content

Instantly share code, notes, and snippets.

@yajd
Created March 7, 2014 22:13
Show Gist options
  • Select an option

  • Save yajd/9421328 to your computer and use it in GitHub Desktop.

Select an option

Save yajd/9421328 to your computer and use it in GitHub Desktop.
Alertnative to DOMNodeInsetd MutEvent that doent use MutObs: http://stackoverflow.com/questions/6997826/alternative-to-domnodeinserted#10343915
@keyframes nodeInserted {
from {
outline-color: #fff;
}
to {
outline-color: #000;
}
}
div.some-control {
animation-duration: 0.001s;
animation-name: nodeInserted;
}
document.addEventListener('animationstart', function(event){
if (event.animationName == 'nodeInserted'){
// Do something here
}
}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment