JSFiddle - React, Tailwind, and code Playground

by thecodeparadox

HTML

<div class="img">divdivdiv</div>

JavaScript

var $image, $imageNowWidth;
$(".img").hover(function(){ //mouseenter
   $image = $(this);
   $imageNowWidth = $image.width();
},function() {            //mouseleave
   console.log(this);
});