JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="text" rows="5" cols="25"></textarea> <span id="fade">fade</span>
JavaScript
$("#fade").click(function() {
$('#text').animate({backgroundColor: '#FF0000'}, 'slow');
});
<textarea id="text" rows="5" cols="25"></textarea> <span id="fade">fade</span>
$("#fade").click(function() {
$('#text').animate({backgroundColor: '#FF0000'}, 'slow');
});