function displayPhotoPreview(src) {
    var photoElement;
    var progressElement;
    //Hide loader progress
    showProgress(false);
    //Create image preview and append to container
    createPhotoPreview(src);
    //Get references to our new elements
    photoElement = document.querySelector('.photo-preview');
    progressElement = document.querySelector('.progress-bar-inner');
    //Register animation event listner so we can hide our image when the animation is done
    progressElement.addEventListener(photobooth.animationEvent, photoPreviewComplete);
    progressElement.classList.add('progress-start');

    window.setTimeout(function() {
      photoElement.classList.add("fade-in");
    },100);

  }
//Display the new photo to preview the results
Display the new photo to preview the results
Display the new photo to preview the results
function displayPhotoPreview(src) {
    var photoElement;
    var progressElement;
    showProgress(false);
    createPhotoPreview(src);
    photoElement = document.querySelector('.photo-preview');
    progressElement = document.querySelector('.progress-bar-inner');
    progressElement.addEventListener(photobooth.animationEvent, photoPreviewComplete);
    progressElement.classList.add('progress-start');
    window.setTimeout(function() {
      photoElement.classList.add("fade-in");
    },100);
  }
function displayPhotoPreview ( src ) { var photoElement ; var progressElement ; showProgress ( false ) ; createPhotoPreview ( src ) ; photoElement = document . querySelector ( '.photo-preview' ) ; progressElement = document . querySelector ( '.progress-bar-inner' ) ; progressElement . addEventListener ( photobooth . animationEvent , photoPreviewComplete ) ; progressElement . classList . add ( 'progress-start' ) ; window . setTimeout ( function ( ) { photoElement . classList . add ( "fade-in" ) ; } , 100 ) ; }
Display the new photo to preview the results
Display the new photo to preview the results
//Hide loader progress //Create image preview and append to container //Get references to our new elements //Register animation event listner so we can hide our image when the animation is done