DEV Community

Discussion on: How to Create a 3D Cube in ReactJS 🧊

 
maxinejs profile image
Maxine

(I am not 100% positive on this) but I believe it’s just limitations with react-3D-cube unfortunately. I believe you can use three.js. If not unfortunately the only other way I know of is getting funky with css transform 3dtransfrom, and 3drotate properties. I hope this helps a little bit!

Thread Thread
 
icecoffee profile image
Atulit Anand

Since their is no documentation provided by the author on npm package. I dont think this package supports any such feature but you can always modify the original code to get things done your way.

My opinion is to check out documentation of motion js and then take a look at line 230 in cube.tsx πŸ‘‡
github.com/pjb0811/react-3d-cube/b...

Thread Thread
 
maxinejs profile image
Maxine

Thank you for coming through!!!