JSFiddle - React, Tailwind, and code Playground
HTML
<div id="testdiv">
<input type="text" id="txt" style="display:none;" />
</div>
<img src="http://photojournal.jpl.nasa.gov/jpeg/PIA15256.jpg" id="dummy" style="display:none;" alt="" />
CSS
#testdiv {
background:#aaaaaa none no-repeat right top;
width: 400px;
height: 400px;
}
#txt{
margin-left: 180px;
margin-top: 140px;
}
JavaScript
$(function() {
$('#dummy').ready(function() {
alert('loaded');
$('#testdiv').css('background-image', 'url(http://photojournal.jpl.nasa.gov/jpeg/PIA15256.jpg)');
$('#txt').show(1000);
});
});