JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
Click the <p>bold text</p> to change it's <p>color</p>

CSS

p { font-weight: bold; display: inline; cursor: pointer; }

JavaScript

$('p').click(function() {
    $(this).animate({ 
        'color': 'rgb('+ (Math.floor(Math.random() * 256)) +','+ 
                         (Math.floor(Math.random()*256)) +','+ 
                         (Math.floor(Math.random() * 256)) +')'
    }, 500);
});