portfolio/assets/angular/app.js
// Begin particles animation (disabled during debug and on mobile)
Begin particles animation (disabled during debug and on mobile)
Begin particles animation ( disabled during debug and on mobile )
function playParticles() {
            if (typeof debug !== 'undefined' && debug)
                return;
            else if (/Mobi/.test(navigator.userAgent))
                return;
            $.each(particles, function(i, particle) {
                TweenMax.set(particle.dom, {css:{
                    x: particle.x * window.innerWidth,
                    y: particle.y * 300,
                    rotation: 0.0003}
                });
                updateParticle(particle, Math.random()*2.5);
                if (particlesHidden)
                    particle.dom.css('display', 'inline');
            });
            if (particlesHidden)
                particlesHidden = false;
        }
function playParticles ( ) { if ( typeof debug !== 'undefined' && debug ) return ; else if ( / Mobi / . test ( navigator . userAgent ) ) return ; $ . each ( particles , function ( i , particle ) { TweenMax . set ( particle . dom , { css : { x : particle . x * window . innerWidth , y : particle . y * 300 , rotation : 0.0003 } } ) ; updateParticle ( particle , Math . random ( ) * 2.5 ) ; if ( particlesHidden ) particle . dom . css ( 'display' , 'inline' ) ; } ) ; if ( particlesHidden ) particlesHidden = false ; }
Begin particles animation (disabled during debug and on mobile)
Begin particles animation ( disabled during debug and on mobile )
/* Initialize particle to its {x, y}
                 * Rotation is applied to force sub-pixel animation */