alexfoxy / lax.js

Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.
MIT License
10.44k stars 491 forks source link

About the use of presets in React #138

Closed Devilson8 closed 3 years ago

Devilson8 commented 3 years ago

I could notice in React, that there is the addElements in order to use the elements from lax

But now I wonder if there is any way of using the presets in react by using addPreset, in a very simple way possible??

Devilson8 commented 3 years ago
<p class="desc" data-lax-preset="blurInOut fadeInOut">
            Love, dedication.

Not working in react

alexfoxy commented 3 years ago

Sorry addPreset is not supported in Lax.js 2.0