JSFiddle - React, Tailwind, and code Playground
HTML
<div class="feature"></div>
CSS
.feature {width:100%; background:#666; height:400px; background-size: 100% auto;}
JavaScript
$(function(){
var bgimage = new Image();
bgimage.src="http://placeimg.com/760/460/tech";
$(".feature").hide();
$(bgimage).load(function(){
$(".feature").css("background-image","url("+$(this).attr("src")+")").fadeIn(2000);
});
});