JSFiddle - React, Tailwind, and code Playground
HTML
<div class="frame" title="Tochal Hotel">
<div class="loadingVitrin">
<img src="http://photoblog.toorajam.com/photos/4cf85d53afc37de7e0cc9fa207c7b977.jpg" onload="$(this).fadeTo(500, 1);">
</div>
</div>
CSS
html, body {
padding: 10px;
}
.frame {
z-index: 15;
box-shadow: 0 0 10px gray;
width: 350px;
height: 350px;
border: gray solid 1px;
padding: 5px;
background: #F0F9FF;
}
.loadingVitrin {
z-index: 15;
width: 350px;
height: 350px;
overflow: hidden;
background: url("http://photoblog.toorajam.com/images/main/ajax-loader.gif") no-repeat center;
}
.loadingVitrin img {
display: none;
height: 350px;
}