GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

01A Soap Bubble Whose Rainbow Is Computed From Film Thickness

For every pixel it finds how far light bouncing off the film's front and back faces drifts apart over the thickness, then adds how much survives at red, green and blue wavelengths. The same bubble shows a different color wherever the thickness changes.

Best forBrand hero backdrops and product packaging mockups

FILM_NFILM_D_NMWAVE_RGB_NM
A Soap Bubble Whose Rainbow Is Computed From Film Thickness
Open in a new tab

01 A Soap Bubble Whose Rainbow Is Computed From Film Thickness — Measured area 27.32% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Bubble Animation CSS: 9 Soap-Film Scenes That Pop

The post this demo lives in

Bubble Animation CSS: 9 Soap-Film Scenes That Pop - preview of all 9 demosBubble Animation CSS: 9 Soap-Film Scenes That PopA soap bubble's rainbow is not painted on — 01 computes color from film thickness, 04 pops from a poked rim that peels b See all demos in this post

If you like this effect - similar demos