Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second usage of luxy.init() problem #11

Open
walkao opened this issue Sep 18, 2019 · 2 comments
Open

Second usage of luxy.init() problem #11

walkao opened this issue Sep 18, 2019 · 2 comments

Comments

@walkao
Copy link

walkao commented Sep 18, 2019

Hey, I'm trying to use your cool library in my single page application home project, but I have some problems with smooth scrolling when calling .init() second time when different page with #luxy element loads.

Scroll partially works, it calculates transform, but it stops smoothing effect - whereas parallax works fine so I think there is problem with just an animation of scrolling.

Tried to fix the bug in the code but no success - I'd be grateful for some advices or ideas.

Thanks!

@ItayAssouline
Copy link

Having the same problem. help would be appriciated

@TechNerdsUzi
Copy link

TechNerdsUzi commented Jan 26, 2022

Try This
(window).luxy.init();

Hey, I'm trying to use your cool library in my single page application home project, but I have some problems with smooth scrolling when calling .init() second time when different page with #luxy element loads.

Scroll partially works, it calculates transform, but it stops smoothing effect - whereas parallax works fine so I think there is problem with just an animation of scrolling.

Tried to fix the bug in the code but no success - I'd be grateful for some advices or ideas.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants