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
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
Reviews
No reviews yet.
In the same spirit

A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- WordPress

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

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

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