You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for this awesome lib!
I would like to use it using "import ..." instead of including it with a script tag. Any reason why you didn't expose the function with an "export .... "?
The text was updated successfully, but these errors were encountered:
I wasn't sure how to achieve what I need while keeping the vanilla js simplicity of your lib (👌), without making it go through babel and stuff to remain ok on all browsers.
So what I did is put the universalParallax var in window (in your lib).
And on my side, importing it normally like I would but call new window.universalParallax().init... and it does the trick for my kind of use case with minor change and without breaking anything for others.
I can try to push that when I get some time to test it out of my scope if you don't.
Hello,
First, thanks for this awesome lib!
I would like to use it using "import ..." instead of including it with a script tag. Any reason why you didn't expose the function with an "export .... "?
The text was updated successfully, but these errors were encountered: