Answers for "event from changed style"

0

event from changed style

var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
    console.log('style changed!');
   });    
 });

 var target = document.getElementById('myId');
  observer.observe(target, { attributes : true, attributeFilter : ['style'] });
Posted by: Guest on November-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language