js/lightbox.js
function startAnimation() {
    if (isIE8) {
      return;
    }
    // stop any already running animations
    stopAnimation();
    var fnc = function () {
      addClass(CTX.box, _const_class_prefix + '-loading');
      if (!isIE9 && typeof CTX.opt.loadingAnimation === 'number') {
        var index = 0;
        animationInt = setInterval(function () {
          addClass(animationChildren[index], _const_class_prefix + '-active');
          setTimeout(function () {
            removeClass(animationChildren[index], _const_class_prefix + '-active');
          }, CTX.opt.loadingAnimation);
          index = index >= animationChildren.length ? 0 : index += 1;
        }, CTX.opt.loadingAnimation);
      }
    };
    // set timeout to not show loading animation on fast connections
    animationTimeout = setTimeout(fnc, 500);
  }
function startAnimation() {
    if (isIE8) {
      return;
    }
    // stop any already running animations
    stopAnimation();
    var fnc = function () {
      addClass(CTX.box, _const_class_prefix + '-loading');
      if (!isIE9 && typeof CTX.opt.loadingAnimation === 'number') {
        var index = 0;
        animationInt = setInterval(function () {
          addClass(animationChildren[index], _const_class_prefix + '-active');
          setTimeout(function () {
            removeClass(animationChildren[index], _const_class_prefix + '-active');
          }, CTX.opt.loadingAnimation);
          index = index >= animationChildren.length ? 0 : index += 1;
        }, CTX.opt.loadingAnimation);
      }
    };
    // set timeout to not show loading animation on fast connections
    animationTimeout = setTimeout(fnc, 500);
  }
function startAnimation ( ) { if ( isIE8 ) { return ; } // stop any already running animations stopAnimation ( ) ; var fnc = function ( ) { addClass ( CTX . box , _const_class_prefix + '-loading' ) ; if ( ! isIE9 && typeof CTX . opt . loadingAnimation === 'number' ) { var index = 0 ; animationInt = setInterval ( function ( ) { addClass ( animationChildren [ index ] , _const_class_prefix + '-active' ) ; setTimeout ( function ( ) { removeClass ( animationChildren [ index ] , _const_class_prefix + '-active' ) ; } , CTX . opt . loadingAnimation ) ; index = index >= animationChildren . length ? 0 : index += 1 ; } , CTX . opt . loadingAnimation ) ; } } ; // set timeout to not show loading animation on fast connections animationTimeout = setTimeout ( fnc , 500 ) ; }
Starts the loading animation
Starts the loading animation