JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://placekitten.com/200/200">
<img src="http://placekitten.com/150/150">
<img src="http://placekitten.com/180/180">

CSS

body { background:black; }
img { display:block; margin:10px; }

JavaScript

$('img').mouseenter(function(){
     var _width = $(this).width();
    var _height = $(this).width();
     $(this).stop().delay(2000).animate({
            height: '+=40px',
        width: '+=40px'
     });
    $(this).mouseleave(function() {    
        
    $(this).stop().animate({
            height: _height+'px',
        width: _width+'px'
        }); 
        

});

});