A free interactive 3D Spinning Cube component built using Tailwind CSS and Three.js. Customize colors, cameras, lighting, and everything inbetween.
Try and spin the cube
First you'll need to install component dependencies into your project.
npm i @react-three/fiber @react-three/drei
Create a new component in your project and paste in the below code.
Just like that. Your new component should render in your App.
- 0xca0a - The master of inspiration. Thank you for all things Three.js related. A brilliant creator.