HTML + CSSBackgrounds

Colored smoke

Soft clouds of color swirl and swell slowly, like ink spreading in water or smoke on a stage.

Settings

1x
1x
1

Code

<div class="pt-smoke"><i style="--cc:var(--c1);--x:-20.0%;--y:34.5%;--ox:89.6%;--oy:41.7%;--t:20.6s"></i><i style="--cc:var(--c2);--x:16.1%;--y:-11.6%;--ox:84.4%;--oy:86.7%;--t:29.0s"></i><i style="--cc:var(--c3);--x:4.9%;--y:2.5%;--ox:87.5%;--oy:42.5%;--t:26.5s"></i><i style="--cc:var(--c1);--x:56.8%;--y:3.7%;--ox:60.6%;--oy:44.4%;--t:24.6s"></i><i style="--cc:var(--c2);--x:24.3%;--y:6.2%;--ox:89.8%;--oy:52.7%;--t:31.6s"></i><i style="--cc:var(--c3);--x:42.2%;--y:-14.4%;--ox:32.7%;--oy:56.5%;--t:22.5s"></i><i style="--cc:var(--c1);--x:-13.5%;--y:4.4%;--ox:45.8%;--oy:30.6%;--t:27.3s"></i></div>

Prompt for AI

Paste it into ChatGPT, Claude or Cursor and it will adapt the block to your project with these settings, even if you don’t use React.

More in Backgrounds

Where to use it

Colored smoke has a moody, atmospheric feel that works for the hero of a perfume brand, a cocktail bar’s website or the teaser page of a new album. Seven blurred clouds rotate and swell at different speeds, so the mix of colors never repeats in an obvious way. An animated smoke background in pure CSS.

It shines on a dark background with two or three saturated colors; on white it loses most of its glow. If text goes on top, a slightly lower opacity keeps the clouds from swallowing thin letters.