Bubbles Screensaver_
A free bubbles screensaver for your browser
Eight modes
How to use as a screensaver
Keyboard shortcuts
Related searches
Guide — iridescent bubbles in five steps
Eight modes, soap film that really changes colour, wind, gravity and depth of field. Pop them, blow more, tilt your phone. Nothing to install.Choose Soap, Sky, Underwater, Champagne, Neon, Glass marbles, Night or Studio, or press 1 to 8. A mode sets the backdrop, bubble style, count, size, wind and gravity in one go.
Drag Count (1 to 300), Size min and Size max, Speed, Iridescence and Depth of field. Far bubbles are smaller, slower and blurrier; Iridescence 0 gives clear glass.
Set a Wind strength and direction and a Gravity from -10 (bubbles fall) to +10 (they rise). The arrow keys steer: ↑ ↓ change gravity, ← → push the wind.
Click or tap a bubble to pop it. Hold the pointer on empty space, or press B, to blow a stream of new bubbles. Choose what the pointer does (push, pop, attract or nothing), or switch on Calm mode so nothing pops.
Press Enter Fullscreen, click the background or press F. Space pauses, T puts a clock in a big bubble, P saves a PNG up to 4K, Copy link keeps your exact setup and Esc leaves.
Modes and shortcuts
- 1 Soap
- Dark teal backdrop, classic soap bubbles
- 2 Sky
- Daylight, clouds, bubbles rising on a breeze
- 3 Underwater
- Rising air bubbles, light shafts, caustics
- 4 Champagne
- Tiny golden fizz in glass columns
- 5 Neon
- Glowing outlines on black
- 6 Glass marbles
- Heavy, glossy, bouncing
- 7 Night
- Bioluminescent bubbles and sparks
- 8 Studio
- A few giant bubbles, macro look
- F
- Fullscreen on/off
- Space
- Pause / resume
- B
- Blow bubbles
- ↑ ↓
- Gravity: rise / fall
- ← →
- Push the wind
- M / I
- Calm mode / pointer mode
- T / P / R
- Clock / save PNG / reset
- TV / monitor
- Open the page, press F, leave it running
- screen sleep
- Full screen asks the browser to keep the display awake where supported; otherwise set the sleep timer to Never
- phone
- Switch on Tilt to steer the bubbles
- OS screensaver
- A web page can’t register as one; use full screen instead
The bubbles screensaver, explained
What is the bubbles screensaver?
It is a browser-based bubbles screensaver that fills a screen of any size with floating, wobbling bubbles. It is inspired by the classic Windows bubbles screensaver, but it is an independent project: the shading, the physics and all the art are original and generated by the page itself, with no video, no images and no audio files. It runs in any current browser with nothing to download.
Why soap bubbles are iridescent
The colours of a soap bubble are not pigment. Light bounces off the outer and the inner surface of the thin soap film, the two reflections interfere, and the colour you see depends on how thick the film is. Gravity drains the soapy water downward, so the film is thicker at the bottom and the colours settle into horizontal bands; when the top becomes so thin that every wavelength cancels it turns black, which usually means the bubble is about to pop.
The page paints its soap bubbles with a simplified version of this idea. For each of the red, green and blue channels the reflected brightness follows ½ − ½·cos(4π·n·d·cosθ / λ), with a refractive index n of about 1.33 (soapy water), a film thickness d that grows towards the bottom and swirls like flowing liquid, and a wavelength λ for each channel. Window-shaped reflections, a second dimmer reflection on the far side of the bubble and a soft rim light are added on top. Older bubbles gradually grow a dark, silvery cap at the top before they pop on their own.
Why bubbles are round, and why they wobble
Surface tension pulls a soap film towards the smallest surface it can have around the air it holds, and for a given volume that is a sphere. A bubble that is bumped, or hit by a gust, squashes and stretches before it settles again; here each bubble is a damped oscillator, so collisions and wind kicks make it wobble along the direction of the push and calm down within a second or two.
Eight modes
Soap is the classic look on a dark blue-green backdrop. Sky puts the bubbles in daylight with drifting clouds. Underwater sends air bubbles up through light shafts and caustics, and a popped bubble breaks into tiny ones. Champagne shows hundreds of tiny golden bubbles rising from nucleation points in one to three glass columns; as in a real glass they grow and speed up on the way up and vanish into the foam. Neon draws glowing outlines on black. Glass marbles are heavy, glossy and colourful, and bounce slowly on a floor with soft shadows. Night is bioluminescent blue with sparks, and Studio is a macro-photo look with a few giant bubbles on a white and grey backdrop.
Wind, gravity and depth of field
Gravity runs from -10 (bubbles fall) to +10 (they rise) and Wind has a strength and a compass direction, with gentle gusts. Every bubble sits at its own depth: far bubbles are smaller, slower and blurrier, near ones are bigger and sharp, and the Depth of field slider decides how strongly the blur grows. Bubbles bump into each other softly, only when they are at a similar depth, and the ones at the edge of the screen drift out and are replaced by new ones entering from upwind.
Pop, blow and play
Click or tap a bubble to pop it: a ring and a burst of droplets fly out. Hold the pointer on empty space, or press B, to blow a stream of new bubbles from a little wand. Pointer sets what the mouse or finger does on its own: push bubbles away, pop what it touches, attract them, or nothing. Calm mode switches popping off, so a click only makes a bubble wobble, and the pop counter counts the bubbles you pop (the all-time total stays on your device). The optional pop sound is generated in your browser, is off by default and only starts after you switch it on.
Tilt your phone
Switch on Tilt on a phone or tablet and the bubbles slide towards the side you tilt the device to, measured from the way you were holding it when you switched it on. Some browsers, including Safari on iPhone and iPad, ask for motion access first; the page only asks after you press the switch. Where there is no motion sensor, nothing happens.
Run it as a screensaver on a TV or monitor
Click the background or press F for full screen, then leave the mouse alone: the cursor and the buttons hide after a few seconds. Switch on the clock and a big soft bubble with the time floats in the middle while the other bubbles flow around it. In full screen the page asks the browser not to let the display sleep, where the Screen Wake Lock feature is supported. A web page cannot register itself as your operating system’s screensaver, so if the screen sleeps, set the sleep timer to Never while it runs.
Smooth on slow devices
Every bubble is shaded once, pixel by pixel, into a small image (a sprite) and then drawn on a 2D canvas, so the page needs no WebGL and behaves the same on every device. The sprites are baked in short time slices so the page never freezes, and they are rebuilt whenever you change the look. With Auto quality on, the page lowers the render resolution and then the number of bubbles when it stays below about 38 frames per second for three seconds. If you ask your device for reduced motion, the page starts in the slow Studio mode.
Save a picture or share your bubbles
Save as PNG downloads the current scene, at the current size, at Full HD (1920 pixels on the long side) or at 4K (3840 pixels on the long side), handy as a wallpaper. Copy link gives you an address that reopens the page with the same mode, sliders, backdrop, pointer and clock. Add ?fs=1 to the address to fill the window as soon as the page opens, or aq=0 to switch Auto quality off.
| Parameter | Meaning |
|---|---|
m | Mode: soap, sky, water, champ, neon, marble, night or studio |
n, a, z | Count, smallest size, largest size |
sp, ir, df | Speed, iridescence, depth of field (0 to 10) |
wi, wd, gr | Wind strength, wind direction in degrees, gravity (-10 to 10) |
bg, bc | Backdrop name, custom colour as six hex digits |
pt, ti, fx, ca, cl | Pointer (p, o, a, x), iridescent tint, scene effects, calm mode, clock (0 or 1) |
Privacy
The bubbles are computed and drawn entirely in your browser, and your settings stay in its local storage on your device. Nothing about your scene is sent anywhere; like every page here it loads a web font and a cookie-free visit counter. The pop sound, if you switch it on, is synthesised locally.