JSFiddle - React, Tailwind, and code Playground
HTML
<div id="img1" class="img1"> </div>
CSS
.img1 {
background-image: url('http://blogmedia.jaludo.com/titter/wp-content/uploads/2012/05/random_picture6.jpg');
background-position:center;
background-repeat:no-repeat;
background-size:cover;
display: none;
}
html, body, .img1 {
height: 200px;
width: 200px;
}
JavaScript
$(function() {
$("#img1").fadeIn(1000);
});