Skip to content

Drifting clouds in WordPress

A sunrise sky where clouds slowly drift behind the heading and the tagline.

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-nuages-defilants.php
<?php
/**
 * Plugin Name: Forge, Nuages qui défilent
 * Description: Un ciel de lever du jour où des nuages dérivent lentement derrière le titre et le texte d’accroche. Ajoute la composition « Nuages qui défilent » à 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-nuages-defilants
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efnu", "layout": {"type": "default"}} -->
<section class="wp-block-group efnu"><!-- wp:html -->
<span class="efnu__sky" aria-hidden="true">
          <span class="efnu__lane efnu__lane--1"><span class="efnu__cloud efnu__cloud--t1"></span></span>
          <span class="efnu__lane efnu__lane--2"><span class="efnu__cloud efnu__cloud--t2"></span></span>
          <span class="efnu__lane efnu__lane--3"><span class="efnu__cloud efnu__cloud--t1"></span></span>
          <span class="efnu__lane efnu__lane--4"><span class="efnu__cloud efnu__cloud--t2"></span></span>
          <span class="efnu__lane efnu__lane--5"><span class="efnu__cloud efnu__cloud--t1"></span></span>
        </span>
<!-- /wp:html -->
<!-- wp:group {"className": "efnu__copy", "layout": {"type": "default"}} -->
<div class="wp-block-group efnu__copy"><!-- wp:paragraph {"className": "efnu__eyebrow"} -->
style.css
:root {
  --efnu-sky-top: #bae6fd;
  --efnu-sky-bottom: #fef9c3;
  --efnu-cloud-1: #ffffff;
  --efnu-cloud-2: #f1f5f9;
  --efnu-text: #0c4a6e;
  --efnu-body: #075985;
  --efnu-accent: #6d28d9;
  --efnu-on-accent: #ffffff;
  --demo-effet-nuages-defilants-bg: #f0f9ff;
  --demo-effet-nuages-defilants-text: #0c4a6e;
}

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