You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I want to have scrollable native html on my page, while keeping the canvas static while also using @tresjs/cientos Html component on some meshes in the scene. (Not using ScrollController)
I would like for the Html on the box to stay relative to it's Mesh while scrolling.
As of now, this Html will also scroll with the page.
unm, this is a good one. The problem here is that the HTML component doesn't create a 3D object, basically fake it, that's the reason why follow the natural flow.
We could add a fixed prop (or similar) to allow user do this, because now the styles are inline, so... No CSS classes will overwrite this.
Just for question, why not create a normal CSS element (outside TresJs) and apply position fixed? I know, it is just a workaround, but why not? :)
Describe the bug
Say I want to have scrollable native html on my page, while keeping the canvas static while also using @tresjs/cientos Html component on some meshes in the scene. (Not using ScrollController)
I would like for the Html on the box to stay relative to it's Mesh while scrolling.
As of now, this Html will also scroll with the page.
Reproduction
https://codesandbox.io/p/devbox/tresjs-cientos-html-component-issue-ztftnn
Steps to reproduce
Run the sandbox and scroll.
There are two text elements.
and
I expect the first element to scroll, and the second to stay.
System Info
Used Package Manager
pnpm
Code of Conduct
The text was updated successfully, but these errors were encountered: