Animated gradient text in WordPress
A heading whose highlighted words are filled with a continuously sliding colour gradient.
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
The code in WordPress
<?php
/**
* Plugin Name: Forge, Texte en dégradé animé
* Description: Un titre dont une partie est remplie d’un dégradé de couleurs qui glisse en continu. Ajoute la composition « Texte en dégradé animé » à 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-texte-degrade-anime
*<!-- wp:group {"className": "eftd", "layout": {"type": "default"}} -->
<div class="wp-block-group eftd"><!-- wp:paragraph {"className": "eftd__eyebrow"} -->
<p class="eftd__eyebrow">Nouvelle collection automne</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "eftd__title"} -->
<h2 class="wp-block-heading eftd__title">Des couleurs qui <span class="eftd__shine">ne tiennent pas en place</span></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "eftd__text"} -->
<p class="eftd__text">Douze teintes de céramique émaillée à la main, cuites une à une dans notre atelier de Limoges.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->:root {
--eftd-text: #18161f;
--eftd-body: #4a4657;
--eftd-c1: #6d28d9;
--eftd-c2: #be185d;
--eftd-c3: #1d4ed8;
--demo-effet-texte-degrade-anime-bg: #ffffff;
--demo-effet-texte-degrade-anime-text: #18161f;
}
@media (prefers-color-scheme: dark) {
:root.forge-follows-system:not([data-theme="light"]) {Free component: copy it freely, including for commercial projects.
Other visual effects components in WordPress
Visual effects components in WordPress
A large heading whose words turn from grey to ink as the page scrolls, then whose key phrases get a marker stroke, in pure CSS with a readable fallback.
- Tailwind
- React
- CSS
- 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

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

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

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

Four offset, translucent sine waves gently roll along the bottom of a section, each at its own pace.
- Tailwind
- React
- CSS
- WordPress