JSFiddle - React, Tailwind, and code Playground

HTML

<div id="one">some content</div>

CSS

#one {
    background-color: green;
}

JavaScript

var temp2 = "#one";
$(document).ready(function () {
    $(temp2).click(function () {
        $(this).animate({
            opacity: '0.15'
        },
            "slow");
    });
});