<div class="stuff img1"></div>
.stuff {
  width: 360px;
  height: 160px;
}

.img1 {
  background-image: url('http://placehold.it/360x160/9999cc&text=First!');
}

.img2 {
  background-image: url('http://placehold.it/360x160/9999cc&text=Second!');
}
$(function() {
  
  $('.stuff').on('click', function() {
    var $container = $(this);
    $container.fadeOut(function() {
      $container.toggleClass('img1 img2').fadeIn();
    });
  });
  
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js