Skip to content

Floating blurred shapes in WordPress

Three blurred colour blobs drift slowly behind a heading, for a soft and lively background in pure CSS.

Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in WordPress

effet-formes-floues-flottantes.php
<?php
/**
 * Plugin Name: Forge, Formes floues flottantes
 * Description: Trois taches de couleur floues dérivent lentement derrière un titre, pour un fond doux et vivant en CSS pur. Ajoute la composition « Formes floues flottantes » à l'éditeur de blocs.
 * Version: 1.0.0
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Forge
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: forge-effet-formes-floues-flottantes
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efff", "layout": {"type": "default"}} -->
<section class="wp-block-group efff"><!-- wp:html -->
<div class="efff-blobs" aria-hidden="true">
          <span class="efff-blob efff-blob--1"></span>
          <span class="efff-blob efff-blob--2"></span>
          <span class="efff-blob efff-blob--3"></span>
        </div>
<!-- /wp:html -->
<!-- wp:group {"className": "efff-content", "layout": {"type": "default"}} -->
<div class="wp-block-group efff-content"><!-- wp:paragraph {"className": "efff-eyebrow"} -->
<p class="efff-eyebrow">Cabinet Aube · sophrologie à Annecy</p>
<!-- /wp:paragraph -->
style.css
:root {
  --efff-bg: #fbf9ff;
  --efff-text: #1e1b2e;
  --efff-muted: #4a4560;
  --efff-b1: #c4b5fd;
  --efff-b2: #a5f3fc;
  --efff-b3: #fbcfe8;
  --efff-accent: #5b21b6;
  --efff-accent-text: #ffffff;
  --demo-effet-formes-floues-flottantes-bg: #f1eef8;
  --demo-effet-formes-floues-flottantes-text: #1e1b2e;
}

Free component: copy it freely, including for commercial projects.

Visual effects components in 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
    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
  • A paragraph whose words turn from grey to full ink, one by one, as the page scrolls, in pure CSS with a plain-text fallback.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Four offset, translucent sine waves gently roll along the bottom of a section, each at its own pace.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component