JSFiddle - React, Tailwind, and code Playground

HTML

<div class="hover-class"></div>
<div class="hover-class"></div>
<div class="hover-class"></div>

CSS

div {
    position   : relative;
    left       : 30px;
    width      : 50px;
    height     : 50px;
    background : red;
}

JavaScript

$(function()
{
    $(".hover-class").hover(function() {console.log('1');
         $(this).stop().animate({left:"50px"});
    },
    function() {
         $(this).stop().animate({left:"30px"});
    });
});