gabwebdesign
10/12/2017 - 3:15 PM

Ejemplo de lluvia de Partículas http://goo.gl/1RVa92, http://goo.gl/vRLUNP

Ejemplo de lluvia de Partículas http://goo.gl/1RVa92, http://goo.gl/vRLUNP

function createConfetti(){
    var color=['red', 'blue', 'green', 'orange']

    for (var i=0; i <= 100; i++) {
        var confetti = document.createElement('div')
        confetti.className = color[Math.round(Math.random()*3)];
        _confetti.appendChild(confetti)
        confetti.style.left = (Math.random() * 350)+"px";  
        
        TweenMax.to(confetti, 10,{ x:Math.random() * -200,y:Math.random() * 400,
        rotationY:Math.random() * 10800,rotation:Math.random() * 10800,
        skewX:Math.random() * 100, ease:Power4.easeOut})

    }
}