code: function (event) {
  			F.cancel();
  
  			if (false === F.trigger('beforeClose')) {
  				return;
  			}
  
  			F.unbindEvents();
  
  			if (!F.isActive) {
  				return;
  			}
  
  			if (!F.isOpen || event === true) {
  				$('.fancybox-wrap').stop(true).trigger('onReset').remove();
  
  				F._afterZoomOut();
  
  			} else {
  				F.isOpen = F.isOpened = false;
  				F.isClosing = true;
  
  				$('.fancybox-item, .fancybox-nav').remove();
  
  				F.wrap.stop(true, true).removeClass('fancybox-opened');
  
  				F.transitions[ F.current.closeMethod ]();
  			}
  		}
docs: Start closing animation if is open; remove immediately if opening/closing