JSFiddle - React, Tailwind, and code Playground

HTML

<div id="foo">xxx</div>

CSS

div
      {
        width     : 100px;
        height    : 100px;
        position  : absolute;
        left      : -3%;
        border    : 1px solid red;
}

JavaScript

$(function() {
        var step = -1;
        $.fx.step.left = function(fx) {
          if (++step == 0)
          {
            console.log('animating from', fx.start, 'to', fx.end, fx.unit);
          }
        };

        $("#foo").animate({ left : '10px' });

      });