Skip to content

Animated wave divider in WordPress

The bottom of a coloured section cut by three translucent waves rolling at different speeds.

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-vagues-separateur.php
<?php
/**
 * Plugin Name: Forge, Séparateur en vagues animées
 * Description: Le bas d’une section colorée découpé par trois vagues transparentes qui ondulent à des vitesses différentes. Ajoute la composition « Séparateur en vagues animées » à 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-vagues-separateur
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efvg", "layout": {"type": "default"}} -->
<section class="wp-block-group efvg"><!-- wp:group {"className": "efvg__content", "layout": {"type": "default"}} -->
<div class="wp-block-group efvg__content"><!-- wp:paragraph {"className": "efvg__eyebrow"} -->
<p class="efvg__eyebrow">Base nautique de Pornic</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efvg__title", "anchor": "efvg-titre"} -->
<h2 class="wp-block-heading efvg__title" id="efvg-titre">Cours de voile dès 7 ans</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efvg__text"} -->
<p class="efvg__text">Stages d’une semaine en optimist, catamaran ou planche à voile, encadrés par des moniteurs diplômés d’État, d’avril à octobre.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
style.css
:root {
  --efvg-bg: #0f766e;
  --efvg-text: #ffffff;
  --efvg-body: #e6fffb;
  --efvg-wave: #f0fdfa;
  --efvg-accent: #ffffff;
  --efvg-on-accent: #115e59;
  --demo-effet-vagues-separateur-bg: #f0fdfa;
  --demo-effet-vagues-separateur-text: #134e4a;
}

@media (prefers-color-scheme: dark) {

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