JSFiddle - React, Tailwind, and code Playground

HTML

<div id="element">
    1
</div>

CSS

#element{
    width: 200px;
    height: 200px;
    background-color:#000;
}

JavaScript

$('#element').click(function () {
    //$('#element').css({ backgroundColor: "#99cc00" }); //works but no animation
    //$('#element').animate({ backgroundColor: '#ffffff' }, 2000); //does nothing
    $('#element').animate({backgroundColor:'#99cc00'}, 2500); //does nothing
});