JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div class="particle">
    <span class="cube"></span>
    <span class="cube"></span>
</div>

CSS

.particle {
    position: absolute;
    background: red;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -50px;
}

.particle:before, .particle:after, .cube, .cube:before, .cube:after {
    content: '';
    position: absolute;
    background: inherit;
    width: 100%;
    height: 100%;
}