Skip to content

Rising bubbles background

Translucent bubbles of varied sizes slowly rise behind a content card, with a highlight and a gentle sway, in pure CSS.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Ten translucent soap bubbles, from the smallest to the largest, rise from the bottom of the section with a gentle sway, each at its own speed, then fade out at the top. Each bubble has a bright highlight, an iridescent glint and a tinted rim: a calm, fresh background for a cleaning company, a pool installer, a spa, a wellness centre or a car wash. The text stays readable on a semi-opaque card, with AA contrast in light and dark mode. Everything is set with variables: --efbm-tint for the bubble colour, --efbm-shine for the highlight, --efbm-glint for the iridescence, and the duration of each rise on its lane. Only transform and opacity are animated, with no image or script, and the decoration is hidden from screen readers. A keyboard-accessible checkbox pauses the animation (WCAG 2.2.2). No horizontal scrolling from 360 px. With prefers-reduced-motion the bubbles stay still, scattered at different heights.

Code

Loading the code…

The code of this component in

Archive contents

effet-fond-bulles-montantes-html-tailwind.zip3 files · 5 Ko

  • index.html13 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • Cards that fade in as they enter the screen, one after another in each row, without a line of JavaScript and with a static fallback.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A translucent card with a saturated blur whose sharper edge refracts the colourful shapes drifting behind it, with an opaque fallback when transparency is reduced.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A help block shaped like a conversation: bubbles, three animated typing dots and clickable quick replies that show your answers to frequent questions, frozen under prefers-reduced-motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component