JSFiddle - React, Tailwind, and code Playground

by staeff

HTML

<!DOCTYPE html>
<html>
    <head>
        <title>Check 'this' Out!</title>
    </head>
    <body>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </body>
</html>

CSS

div {
    height: 100px;
    width: 100px;
    background-color: #4ECDC4;
    border-radius: 5px;
    display: inline-block;
}

JavaScript

$(document).ready(function() {
    $('div').click(function() {
        $(this).fadeOut('slow');
    });
});