JSFiddle - React, Tailwind, and code Playground

by atheer Salim

HTML

<div id="something" style="background: green">Something</div>

<input type="button" id="the-button" value="Animate">

JavaScript

$('#the-button').click(function() {
    $('#something').animate({ 
    backgroundColor: "red" 
    }, 1000);
});