Skip to content

Scroll-down cue in WordPress

A small mouse with a scrolling wheel and three cascading chevrons invite visitors to scroll, inside a real anchor link.

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-chevrons-defilement.php
<?php
/**
 * Plugin Name: Forge, Indicateur de défilement
 * Description: Une petite souris dont la molette descend et trois chevrons en cascade invitent à faire défiler la page, dans un vrai lien d’ancre. Ajoute la composition « Indicateur de défilement » à 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-chevrons-defilement
 *
pattern.html
<!-- wp:group {"tagName": "section", "className": "efcd", "layout": {"type": "default"}} -->
<section class="wp-block-group efcd"><!-- wp:group {"className": "efcd-body", "layout": {"type": "default"}} -->
<div class="wp-block-group efcd-body"><!-- wp:paragraph {"className": "efcd-eyebrow"} -->
<p class="efcd-eyebrow">Domaine des Trois Chênes · Saumur</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efcd-title", "anchor": "efcd-titre"} -->
<h2 class="wp-block-heading efcd-title" id="efcd-titre">Des chenins et des cabernets nés du tuffeau</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efcd-text"} -->
<p class="efcd-text">Douze hectares en agriculture biologique depuis 2008, vendangés à la main. Caveau ouvert du mardi au samedi.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
style.css
:root {
  --efcd-bg: linear-gradient(180deg, #f5efe3, #e8dcc3);
  --efcd-text: #2b2116;
  --efcd-muted: #5b4c3a;
  --efcd-cue: #6b3e1b;
  --demo-effet-chevrons-defilement-bg: #efe8da;
  --demo-effet-chevrons-defilement-text: #2b2116;
}

@media (prefers-color-scheme: dark) {
  :root.forge-follows-system:not([data-theme="light"]) {
    --efcd-bg: linear-gradient(180deg, #1d1813, #2a2118);

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