adashabeta

ProximityEffect demo 5

’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.

View/download project on GitHub.

wrap-chars page.


// split the letters into separate elements using wrap-chars
let poem = document.querySelector('*.centerpiece');
WrapChars.wrap(poem);


// effect config
let params = {
    threshold: 40,
    distance:  20,
    jitter:    30,
    attack:     0.6,
    decay:      0.6
};


// add effects
proxEffect.addEffect('opacity', 1, 0.5);
proxEffect.addEffect('scale',   1, 1.33);
proxEffect.addEffect('blur',    0, 5);