JSFiddle - React, Tailwind, and code Playground

by andrewwhitaker

HTML

<input type="button" id="bgcolor" value="Change color"/>
<div id="name">
    Abder-Rahman
</div>

JavaScript

$("#bgcolor").click(function() {
    $("#name").animate({
        backgroundColor: '#8B008B'
    }, "fast");
});