← All elements

Lava Lamp Blobs

by @admin · 0 views

<div class="lv" role="img" aria-label="A lava lamp"><div class="goo"><i></i><i></i><i></i><i></i></div></div>

About this animation

Warm blobs that rise, sink and merge inside a lamp, using blur and contrast filters to fuse their edges.

How it works

White blobs on black are blurred and then pushed through a strong contrast filter, which snaps the soft edges back into one shape wherever they touch. A multiply layer paints the white parts with a warm gradient, and a screen layer turns the black liquid purple.

Ways to customise it

  • Change the gradient in the first layer for the wax colour.
  • Change the second layer for the liquid colour.
  • Add more blobs with different durations.

Good to know

Filters and blend modes can be costly on low-powered phones, so keep the lamp small and avoid showing many at once. Motion is disabled for reduced-motion users.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Css Animation

View all →