Created
March 7, 2014 22:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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