An immersive 3D interactive experience showcasing the Apple MacBook Pro using React Three Fiber and Tailwind CSS. This project highlights a stunning animation of the MacBook Pro with a scroll-based rotation effect, custom textures, and a responsive interface inspired by Apple's elegant design.
@react-three/drei
and @react-three/fiber
.OrbitControls
for additional model interaction..
āāā public/
ā āāā mac.glb # 3D model of the MacBook Pro
ā āāā red.jpg # Custom texture for the screen or matte surface
āāā src/
ā āāā components/
ā ā āāā MacContainer.js # 3D model rendering and animation logic
ā āāā App.js # Main app entry point
ā āāā style.css # Custom Tailwind styles
āāā tailwind.config.js # Tailwind CSS configuration
āāā README.md # Project documentation
Replace mac.glb
in the public/
directory with your own .glb
file.
Update the red.jpg
file in the public/
directory with your preferred texture.
Contributions are welcome! Feel free to open a pull request or raise an issue for suggestions or bugs.
This project is licensed under the MIT License. See the LICENSE
file for details.
Shahdin Salman
GitHub | LinkedIn