JSFiddle - React, Tailwind, and code Playground
HTML
<img src="http://png-4.findicons.com/files/icons/997/vista_style/128/digital_camera.png"></img>
<div class='popup'></div>
CSS
img{
cursor:pointer;
}
.popup{
background-color:red;
width:0px;
height:0px;
position:absolute;
top:calc(50% - 150px);
left:calc(50% - 150px);
display:none;
}
JavaScript
$('img').click(function(){
$('.popup').animate({'height': '+= 100px','width':'+=100px' })
})