JSFiddle - React, Tailwind, and code Playground

by Eduardo GarcĂ­a Sanz

HTML

<div></div>

CSS

div {
    width: 200px;
    height: 200px;
    background-color: red;
    transition: border-radius .5s;
}

div:hover {
    border-radius: 100px;
}

JavaScript

$(function() {

    var div = $('div');
    var property = div.css('transition-property');
    var lastValue = div.css(property);
    
    setInterval(function() {
        
        if(lastValue !== div.css(property)) {
        
            console.log('changed!');
        
        }
    
        lastValue = div.css(property);
    
    }, 10);

});