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

Orientation of screen #224

Open
Jobin-S opened this issue Mar 25, 2024 · 4 comments
Open

Orientation of screen #224

Jobin-S opened this issue Mar 25, 2024 · 4 comments
Labels
question Further information is requested

Comments

@Jobin-S
Copy link

Jobin-S commented Mar 25, 2024

I have a requirement to develop a web app to run on TVs in portrait, but the web app running is a landscape and by the user's view it is portrait orientation.

I need to use canvas confetti but the particle's gravity is going sideways. How can I fix this, is their any existing option that helps achieve my goal? or if now can someone explain what to do inorder to achieve that so that I could contribute the feature if needed

@yoann-k
Copy link

yoann-k commented Apr 3, 2024

I had the same need but for another use case. I tried to create a custom canvas with a css rotation but with no success.

Can you add something like a rotation parameter or has someone an idea on how to do it ?
Thanks in advance for any help ;)

@yoann-k
Copy link

yoann-k commented Apr 3, 2024

Jobin-S, I finally achieve to make an effect that look like i wanted with gravity: 0 and drift: -1 (or more, to fall left). By playing with ticks it make the job ;)

@Jobin-S
Copy link
Author

Jobin-S commented Apr 4, 2024

Thanks you let me try that

@catdad catdad added the question Further information is requested label Apr 21, 2024
@catdad
Copy link
Owner

catdad commented Apr 21, 2024

I am definitely confused by this request. Are you saying that you manually rotated the page itself (with css rotation?) instead of the user rotating their device or rotating the app view itself? And you are also not rotating the confetti canvas, yet still expecting that canvas to know it needs to rotate itself? It feels like you can apply the css rotation to the canvas as well, no?

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

No branches or pull requests

3 participants