JSFiddle - React, Tailwind, and code Playground

by manishtpatel

HTML

<div id="body">
    <h1>
        i am header, should be gray
    </h1>
    <div id="star">
        <a href="#">
            click me to bring in front
        </a>
        i am star, i should be on top
    </div>
    <h1>
        i am footer, should be gray
    </h1>
</div>

JavaScript

$('div#star a').on('click', function(){
     $('div#body').css('opacity', '.4');
     $('div#star').css('opacity', '1');
});