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

Levioso and MouseParallax are not working as expected. #98

Open
5 tasks done
stefanobartoletti opened this issue Apr 23, 2024 · 2 comments
Open
5 tasks done

Levioso and MouseParallax are not working as expected. #98

stefanobartoletti opened this issue Apr 23, 2024 · 2 comments

Comments

@stefanobartoletti
Copy link

Describe the bug

I'm posting this here, as it seems to be related to the Nuxt module.

I've already posted some more info here Tresjs/cientos#369 and here https://github.com/orgs/Tresjs/discussions/642

The problem is that both Levioso and MouseParallax are not working as expected, while other stuff from cientos don't seem to have issues (in my case, 3d text is working).

The problem started with these two components not working only in development environment, but with the latest dependencies updates (probably caused by Nuxt), they don't work in the built production site too. (the problem with development is on a private project that I cannot share at the moment).

The issue with the production environment can be seen also on the linked repository, in the latest commits on the main branch. The latest working configuration is available at the working tag: https://github.com/stefanobartoletti/tresjs-playground/tree/working tag.

A live demo is also available here https://tresjs-playground.vercel.app/3d-text

If more info is needed, please ask :)

Reproduction

https://github.com/stefanobartoletti/tresjs-playground

Steps to reproduce

  • pnpm i
  • pnpm generate
  • pnpm preview

System Info

No response

Used Package Manager

pnpm

Code of Conduct

@stefanobartoletti
Copy link
Author

I noticed that even the example available here https://tresjs-playground.vercel.app/rotating-ring is not working as expected, but it is not using Levioso or MouseParallax.

It is using an onLoop function, as you can see from its source here https://github.com/stefanobartoletti/tresjs-playground/blob/main/pages/rotating-ring.vue

I had a look at the source of both Levioso and MouseParallax and I see that they are internally using onLoop too, so maybe the problem is originating there.

I'm not sure, but maybe this is related to #97

@stefanobartoletti
Copy link
Author

A quick report: updating cientos to version 3.9.0 seems to have partially solved this issue, these animations work correctly on the static production site, but I still have some problems in the development environment (they are not working)

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

1 participant