jquery.backstretch.js
function () {

          if (oldVideoWrapper) {
            oldVideoWrapper.stop();
            oldVideoWrapper.destroy();
          }

          $oldItemWrapper.remove();

          // Resume the slideshow
          if (!that.paused && that.images.length > 1) {
            that.cycle();
          }

          // Now we can clear the background on the element, to spare memory
          if (!that.options.bypassCss && !that.isBody) {
            that.$container.css('background-image', 'none');
          }

          // Trigger the "after" and "show" events
          // "show" is being deprecated
          $(['after', 'show']).each(function () {
            that.$container.trigger($.Event('backstretch.' + this, evtOptions), [that, newIndex]);
          });

          if (isVideo) {
            that.videoWrapper.play();
          }
        }
function () {

          if (oldVideoWrapper) {
            oldVideoWrapper.stop();
            oldVideoWrapper.destroy();
          }

          $oldItemWrapper.remove();

          // Resume the slideshow
          if (!that.paused && that.images.length > 1) {
            that.cycle();
          }

          // Now we can clear the background on the element, to spare memory
          if (!that.options.bypassCss && !that.isBody) {
            that.$container.css('background-image', 'none');
          }

          // Trigger the "after" and "show" events
          // "show" is being deprecated
          $(['after', 'show']).each(function () {
            that.$container.trigger($.Event('backstretch.' + this, evtOptions), [that, newIndex]);
          });

          if (isVideo) {
            that.videoWrapper.play();
          }
        }
function ( ) { if ( oldVideoWrapper ) { oldVideoWrapper . stop ( ) ; oldVideoWrapper . destroy ( ) ; } $oldItemWrapper . remove ( ) ; // Resume the slideshow if ( ! that . paused && that . images . length > 1 ) { that . cycle ( ) ; } // Now we can clear the background on the element, to spare memory if ( ! that . options . bypassCss && ! that . isBody ) { that . $container . css ( 'background-image' , 'none' ) ; } // Trigger the "after" and "show" events // "show" is being deprecated $ ( [ 'after' , 'show' ] ) . each ( function ( ) { that . $container . trigger ( $ . Event ( 'backstretch.' + this , evtOptions ) , [ that , newIndex ] ) ; } ) ; if ( isVideo ) { that . videoWrapper . play ( ) ; } }
Show the image, then delete the old one
Show the image then delete the old one