JSFiddle - React, Tailwind, and code Playground

by notjoelshapiro

HTML

<div id="testr"></div>

CSS

#testr{
    height: 100px;
    width: 100px;
    background: blue;
    -webkit-transition: 2s;
    transition: 2s:
}

JavaScript

$('#testr').click(function(){
    var x = this;
     $(x).css('opacity', '0').delay(4000).$(x).css('opacity', '1');   
})