JSFiddle - React, Tailwind, and code Playground

HTML

<div class="addToCart">
     BLAHHHH
     </div>
     <br>
     <br>
     <br>
     <br>
     <div class="handelv">
     MORE BLAAAHH
     </div>

CSS

.ui-effects-transfer { border: 2px solid black; }
.addToCart
{
    width: 100px;
    height: 100px;
    background-color: #ff0;
}

.handelv
{
    width: 100px;
    height: 100px;
    background-color: #f0f;
    }

JavaScript

$(document).ready(function() {
    
$(".addToCart").click(function () {
      var i = 1 - $(".addToCart").index(this);
      $(this).effect("transfer", { to: $(".handelv").eq(0) }, 1000);
});
  });