Is there is a way to intercept/monitor in Javascript that CSS property changed using vanilla Javascript? Like for example change of width property:
.div {
width:100px;
}
.div:hover {
width:200px;
}
…
<div class="div">Blah</div>
Edit: I mean not hover state change, I looking to detect that width property of the DIV changed. It might be any other property or any other way of changing properties: For example I did div.className = “div bigBox”, where:
.bigBox { width:200px;height:200px }
and I want to know that height property changed!
You can set up an interval and watch the css property in question:
Try it here: http://jsfiddle.net/wAtvp/6/