Replies: 3 comments 6 replies
-
It looks like you're close - I think just keep adjusting the numbers until you get the behavior you desire. You might also want to set |
Beta Was this translation helpful? Give feedback.
-
Thanks @elalish for your help. I'm still trying to figure out. Meanwhile I've tested some code using Javascript and this is what I'm doing:
This is perfectly working as you can see in the video below 👇 . screen-capture.webm |
Beta Was this translation helpful? Give feedback.
-
Update: I've tried using If anyone has tried something similar or tried to solve this problem, please let me know, I hope this discussion will help someone. Thanks all. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello developers,
I am trying to rotate my 3D model in the Y axis parallel to the ground and at the same time create a slight zoom while scrolling the web page.
Using the example in the documentation "Use CSS-like calc() to sync camera orbit with scroll position":
By modifying it, I was able to get what I was looking for, a model that rotated around the straight Y-axis, parallel to the ground:
But the model starts enlarged and takes up the whole viewport and also, it doesn't do the "zoom" effect I want.
How can I achieve the zoom effect + the rotation effect using the calc() function?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions