JSFiddle - React, Tailwind, and code Playground

HTML

<img id="myimage" src="http://www.google.com/images/logos/ps_logo2.png" style="position:relative;" />

JavaScript

$(document).ready(function() {
      $("#myimage").mouseover(function () {
        var $this = $(this);
        $this.animate({left: '+=5'}, 'fast', function() {
          $this.animate({left: '-=10'}, 'fast', function() {
            $this.animate({left: '+=5'}, 'fast', function() {
              //animation finished
            });
          });
        });
      });
    });