are seminal web experiments created by computer-graphics programmer Ricardo Cabello , popularly known as
The physics engine treats the edges of your browser window as solid walls. When you resize your browser window while playing with Google Gravity Pool, the elements adjust and pile up according to the new, narrower or shorter boundaries. 3. DOM Manipulation
The experiment utilizes a 2D physics engine written in JavaScript (reminiscent of engines like Box2D). This code assigns mass, friction, bounce (restitution), and velocity variables to each HTML element on the page. 2. Browser Viewport Bounds
Mr. Doob is most notably the creator and principal maintainer of , a massively popular, open-source JavaScript library used to create and display animated 3D computer graphics in a web browser via WebGL. His portfolio features numerous experiments that push the boundaries of what web browsers can render without external plugins. Behind the Scenes: How It Works
Users can click and drag individual page components, tossing them against the edges of the browser window where they bounce and collide with realistic physics. Historical Legacy: Originally featured on Chrome Experiments
Google Gravity achieved viral status largely due to Google's "I'm Feeling Lucky" button. For years, typing a phrase into Google and clicking "I'm Feeling Lucky" would bypass the search results page and take you directly to the top-ranked website for that query.
If you are interested in exploring other interactive, creative coding projects or the work of Mr.doob, I can find examples of his other work, such as the Three.js library. Share public link
Long before Three.js became an industry standard for web design, Mr.doob was experimenting with HTML5 Canvas, CSS3 3D transforms, and early browser physics engines. Google Gravity was born out of this era of experimentation, demonstrating that the web browser could be a canvas for play, not just static text. Understanding the Mechanics: Canvas, Box2D, and JavaScript
The experiment became so popular that Google eventually integrated various interactive Easter eggs directly into their own search architecture, inspired by the creativity of external developers like Cabello. Why Google Gravity Still Matters
Introduced in 2009, this simulation causes all elements on the Google homepage—such as the logo, search bar, and buttons—to crash to the bottom of the screen as if affected by sudden gravity.