min30327 / luxy.js

Inertia scroll and parallax effect plugin in Vanilla.js
598 stars 86 forks source link

Luxy is stopping my page transitions with SWUP.js #9

Closed Felixr91 closed 5 years ago

Felixr91 commented 5 years ago

I'm using Lux with SWUP.js a page transition library with cdn's at in my footer.php file like this...

    <!-- Swup -->
    <script src="https://unpkg.com/swup@latest/dist/swup.min.js"></script>  
    <script type="text/javascript">
        const swup = new Swup();
    </script>
    <!-- Luxy -->
    <script src="https://cjh.sfo2.cdn.digitaloceanspaces.com/Smooth-Scroll/luxy.js"></script>
    <script type="text/javascript"> 
        luxy.init({
            wrapper: '#luxy',
            wrapperSpeed:  0.08
        });
    </script>

For some reason Luxy is stopping my page transitions. I really love both of these libraries and would like to keep both in my project. Any ideas?

min30327 commented 5 years ago

Hi Felixr91, Is it the same case as below?

https://github.com/min30327/luxy.js/issues/2#issuecomment-464623971

Felixr91 commented 5 years ago

I figured it out! Thanks so much!

ItayAssouline commented 3 years ago

I figured it out! Thanks so much!

Can you please explain how? Struggling with the same problem

haroldao commented 2 years ago

same here @Felixr91 👀