Skip to content

Checkerboard reveal in WordPress

Forty tiles fade away in a diagonal cascade to unveil a poster visual, 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-damier-apparition.php
<?php
/**
 * Plugin Name: Forge, Apparition en damier
 * Description: Quarante carreaux s’effacent en cascade diagonale pour dévoiler le visuel d’une affiche, en CSS pur. Ajoute la composition « Apparition en damier » à 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-damier-apparition
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efda", "layout": {"type": "default"}} -->
<section class="wp-block-group efda"><!-- wp:group {"className": "efda-art", "layout": {"type": "default"}} -->
<div class="wp-block-group efda-art"><!-- wp:html -->
<span class="efda-sun" aria-hidden="true"></span>
<!-- /wp:html -->
<!-- wp:html -->
<span class="efda-hill" aria-hidden="true"></span>
<!-- /wp:html -->
<!-- wp:html -->
<div class="efda-grid" aria-hidden="true">
          <span class="efda-tile" style="--efda-delay: 0.30s"></span>
          <span class="efda-tile" style="--efda-delay: 0.37s"></span>
style.css
:root {
  --efda-card: #ffffff;
  --efda-text: #1b2333;
  --efda-muted: #4a5568;
  --efda-sky: linear-gradient(180deg, #fbcfe8, #fde68a 70%);
  --efda-sun: #f97316;
  --efda-hill: #1e3a5f;
  --efda-tile: #ffffff;
  --efda-accent: #1e3a5f;
  --efda-accent-text: #ffffff;
  --demo-effet-damier-apparition-bg: #eef1f5;
  --demo-effet-damier-apparition-text: #1b2333;

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