JSFiddle - React, Tailwind, and code Playground
by pramendra
HTML
<html>
<body>
<div id="fade">
some text goes here
</div>
</body>
</html>
CSS
#fade{
background:#ff0;
}
JavaScript
$(document).ready(function() {
$('#fade')
.css('backgroundColor', $('#fade').css('backgroundColor'))
.animate({backgroundColor: '#ffffff'}, 5000)
;
});