JSFiddle - React, Tailwind, and code Playground

HTML

<div class="classSelector" style="background: red; width: 100px; height: 100px; float: left;"></div>
<div class="classSelector omittedClasses" style="background: red; width: 100px; height: 100px; float: left;"></div>
<div class="classSelector" style="background: red; width: 100px; height: 100px; float: left;"></div>
<div class="classSelector" style="background: red; width: 100px; height: 100px; float: left;"></div>
<div class="classSelector" style="background: red; width: 100px; height: 100px; float: left;"></div>

JavaScript

$(function(){
        $('.classSelector').not('.omittedClasses').each(function(){
            $(this).fadeTo(100, 0.2).mouseenter(function() { $(this).fadeTo(100, 1) }).mouseleave(function() { $(this).fadeTo(100, 0.2) });
        });
    });