martinlaxenaire / react-curtains

react-curtains is an attempt at converting curtains.js WebGL classes into reusable React components.
MIT License
108 stars 8 forks source link

Planes only update after window resize #15

Open nickoelsner opened 1 year ago

nickoelsner commented 1 year ago

Hi, I think I'm having a problem similar to issue #8, where the planes are not loading into the correct positions until there is a window resize. You mentioned in a comment that it was likely a CSS issue, "the curtains container CSS is loaded after the canvas has been appended."

What is your recommended fix for this?

Codesandbox: https://codesandbox.io/s/curtainsjs-experiment-ic51k4?file=/src/App.js

martinkosmela commented 1 year ago

Hi @noelsner, did you find any solution for this problem and would like to share it?