JSFiddle - React, Tailwind, and code Playground
by BBKING
HTML
<div class="comment">
<div class="commentact">
Test1
</div>
</div>
<div class="comment">
<div class="commentact">
Test2
</div>
</div>
<div class="comment">
<div class="commentact">
Test3
</div>
</div>
JavaScript
$(".commentact").css('opacity','0.2');
$(document).ready(function(){
$(".comment").hover(
function() {
$(".commentact").stop().animate({ opacity: 1 });
},
function() {
$(".commentact").stop().animate({ opacity: 0.2 });
});
});