JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head></head>
<p>
<img src="http://webcut.net/clapper/bigimage.gif"></img>
</p>
</html>
JavaScript
$("p:first").click(function () {
$(this).stop().fadeTo("slow", 0.2);
});
<html>
<head></head>
<p>
<img src="http://webcut.net/clapper/bigimage.gif"></img>
</p>
</html>
$("p:first").click(function () {
$(this).stop().fadeTo("slow", 0.2);
});