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

Planes are missing after resize #101

Open
Dushyant1295 opened this issue Mar 15, 2022 · 3 comments
Open

Planes are missing after resize #101

Dushyant1295 opened this issue Mar 15, 2022 · 3 comments

Comments

@Dushyant1295
Copy link

Dushyant1295 commented Mar 15, 2022

Planes are misplaced or disappears when resizing the window

To Reproduce

Steps to reproduce the behavior:

  1. Go to http://36fm.in/
  2. go to full screen or resize the browser
  3. See error

its simple setup with locomotive scroll

@martinlaxenaire
Copy link
Owner

Hi @Dushyant1295,

It would be easier to debug with a live codepen or fiddle. My guess is that the curtains resize event is fired before the locomotive's one, resulting in a misplacement of the planes.
You could try to handle the resize event manually, or update the scroll values in the curtains onAfterResize() callback maybe?

Cheers,

@Dushyant1295
Copy link
Author

Dushyant1295 commented Mar 19, 2022

Hi @martinlaxenaire Thanks For Replying

I'm Using Same setup but on codepen on resize its fine but on the site plans are missed after resize

see same example here on live http://36fm.in/
and here is the codepen codepen

@martinlaxenaire
Copy link
Owner

Hey @Dushyant1295,

I can remember now that there's indeed a conflict due to how Locomotive Scroll is translating its scroll sections.
If you inspect the DOM you'll see that each section is actually inside the viewport but is hidden with opacity: 0; and each curtains plane is at the "right" position.

This is not a curtainsjs bug but sadly there's definitely a conflict between the 2 libraries.

Cheers,

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

2 participants