conflict with framer-motion lib
when the scene is loaded, the overlay animations stop working.
when i remove the <Environment preset="sunset" background blur={0.3} /> from the Canvas, the animations of framer-motion work again.
If I change the environment preset to a file like this:
three
version: 0.161.0@react-three/fiber
version: 8.15.16@react-three/drei
version: 9.97.0node
version: 18.17.1npm
(oryarn
) version: 9.6.7nextjs
version: 14.0.4Problem description:
i have a page with three fiber scene and an overlay made by framer-motion with animations
<Environment preset="sunset" background blur={0.3} />
from the Canvas, the animations of framer-motion work again.If I change the environment preset to a file like this:
it works again, but it hangs in build with erro:
Relevant code:
Suggested solution: