JSFiddle - React, Tailwind, and code Playground

HTML

<div class="box" name="mybutton" value="mybutton" id="tanuj" style="width:400px; height:500px; border:1px solid black">
  <object  style="width:100%; height:100%" type="text/html" data="https://exaptive.city/studios/724bf2c0-2437-11e6-aa9b-23ffb7ae8f3e/xap/08c214b0-4baa-11e7-a2b4-113acfdd1519?version=studio">
        </object>
</div>
 
 
<div class="thewindow"><div>ZOOM<img src="left.png" class="thewindowclose"></div></div>

CSS

<style>
object {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}  
 
  body { background: #ace; font: 12px/1.2 Arial, Helvetica, sans-serif; }
.box { background:#fff; margin:5px; width:100px; height:100px; float:left; }
.thewindow {
    background:transparent;
    display:none;
    position:absolute; top:50%; left:50%; z-index:50;
 
}
.thewindow > div {
    background:#fff;
    border:1px solid #666;
    margin:-50px 0 0 -50px;
    width:100px; height:100px;
    border-radius: 15px;
    border-width: 4px;
    border-color: #8BC53F;
 
}
</style>

JavaScript

$(document).ready(function(){
 
 
  $('.box').click(function(){
 
$(".thewindow > div").html('<object data="http://www.codehaven.co.uk" />');
    var $t = $('.thewindow'),
        to = $(this).offset(),
        td = $(document);
    
    $('.thewindow').css({top:  to.top + 50, left: to.left + 50, display: 'block'})
    .animate({top:  td.height()/2,left: td.width()/2}, 600, function(){
        $(this).animate({ top: '-=20%', left: '-=20%'}, 600);
 
        $(this).children('div').animate({
            width:650,
            height:500
        }, 600, function(){
            // open dialog here
 
        });
    });
});
 
$('.thewindowclose').click(function(){
    $('.thewindow').hide();
});
  });