Three.js is a cross-browser JavaScript library and application programming interface (API) used to create and display animated 3D computer graphics in a web browser using WebGL. It aims to simplify the process of creating complex 3D animations and interactive experiences on the web.
Three.js abstracts away the complexities of raw WebGL, providing a higher-level API that is much easier to work with. This allows developers to focus on creating compelling 3D content rather than getting bogged down in low-level graphics programming. It's widely used for:
Google Arts & Culture uses Three.js to power many of its immersive 3D experiences, allowing users to explore historical sites, art installations, and cultural artifacts in a virtual environment. This demonstrates Three.js's capability to handle complex scenes and deliver rich, interactive content directly in the browser.