adashabeta

ProximityEffect demo 4

 

View/download project on GitHub.


// effect config
var params = {
    threshold: 80,
    runoff:    20,
    attack:     0.4,
    decay:      0.4,
};


// add effects
fader.addEffect('translateZ', 0, 1000);
fader.addEffect('blur',       0,   20);