JSFiddle - React, Tailwind, and code Playground

by Sourabh Singh Rathore

HTML

<div id="loading"></div>

<div id="container">
    <img src="http://upload.wikimedia.org/wikipedia/commons/f/ff/Bonsai_IMG_6404.jpg"/>
</div>

CSS

#loading {
    background: url('http://cdn.nirmaltv.com/images/generatorphp-thumb.gif');
    height: 64px;
    width: 64px;
}

#container {
    display: none;
}

JavaScript

$(window).load(function() {
    //show();
});


function show() {
    $('#loading').hide();
    $('#container').fadeIn();
};

setTimeout(show, 3000);