Skip to content

Landing stamp in WordPress

A three-step application tracker where a “Validated” stamp lands on each card as it reaches the screen.

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-tampon-apparition.php
<?php
/**
 * Plugin Name: Forge, Tampon qui se pose
 * Description: Un suivi de dossier en trois étapes où un tampon « Validé » vient se poser sur chaque carte quand elle arrive à l’écran. Ajoute la composition « Tampon qui se pose » à 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-tampon-apparition
 *
pattern.html
<!-- wp:html -->
<section class="efta" data-efta aria-labelledby="efta-titre">
        <p class="efta__eyebrow">Mairie de Vannes · Service urbanisme</p>
        <h2 class="efta__title" id="efta-titre">Suivi de votre permis de construire</h2>
        <p class="efta__lead">Dossier PC 056 260 26 B0042 · Maison individuelle, 14 rue des Mouettes.</p>
        <ol class="efta__list">
          <li class="efta__card">
            <div class="efta__content">
              <h3 class="efta__step">Dépôt du dossier</h3>
              <p class="efta__text">Votre dossier complet a été enregistré au guichet urbanisme et un récépissé vous a été remis.</p>
              <p class="efta__status"><strong>Statut :</strong> reçu le 2 septembre 2026</p>
            </div>
script.js
(() => {
  if (!document.querySelector(".efta")) return;
  // Firefox does not support view timelines yet: replay the same range by hand.
  if (!CSS.supports("animation-timeline: view()")) {
    const reduce = matchMedia("(prefers-reduced-motion: reduce)");
    document.querySelectorAll("[data-efta]").forEach((root) => {
      const cards = [...root.querySelectorAll("li")];
      const animations = cards.map((card) => {
        const stamp = card.querySelector('[aria-hidden="true"]');
        const land = stamp.animate(
          [
            { transform: "scale(2.4) rotate(-2deg)" },
style.css
:root {
  --efta-text: #0f172a;
  --efta-body: #475569;
  --efta-card: #ffffff;
  --efta-border: #e2e8f0;
  --efta-stamp-1: #1d4ed8;
  --efta-stamp-2: #b45309;
  --efta-stamp-3: #15803d;
  --efta-accent: #1e3a8a;
  --efta-on-accent: #ffffff;
  --demo-effet-tampon-apparition-bg: #f1f5f9;
  --demo-effet-tampon-apparition-text: #0f172a;

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