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.addStyle('translateZ', 0, 1000);
fader.addStyle('blur',       0,   20);