JSFiddle - React, Tailwind, and code Playground

by Noitidart Molyneux

HTML

<style>
    .entering {
    background-color:red;
    }
    .entering:not(.entering + .leaving) {
    background-color:green;
    }
    </style>
    
    <div class="entering">entering</div>
    <div class="leaving">leaving</div>