Kinetic variable-weight text in WordPress
A large heading whose letters shift from thin to heavy in a wave on hover, keyboard focus or scroll on mobile, 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
The code in WordPress
<?php
/**
* Plugin Name: Forge, Texte cinétique à graisse variable
* Description: Un grand titre dont chaque lettre passe du trait fin au trait gras, en vague, au survol, au focus clavier ou au défilement sur mobile, en CSS pur. Ajoute la composition « Texte cinétique à graisse variable » à 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-cinetique-poids-variable
*<!-- wp:group {"tagName": "section", "className": "efpv-card", "layout": {"type": "default"}} -->
<section class="wp-block-group efpv-card"><!-- wp:paragraph {"className": "efpv-eyebrow"} -->
<p class="efpv-eyebrow">Imprimerie typographique · Lyon</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efpv-title", "anchor": "efpv-titre"} -->
<h2 class="wp-block-heading efpv-title" id="efpv-titre"><span class="efpv-sr">Encre & plomb</span>
<span aria-hidden="true"><span class="efpv-word"><span class="efpv-cell" style="--i: 0"><span class="efpv-thin">E</span><span class="efpv-bold">E</span></span><span class="efpv-cell" style="--i: 1"><span class="efpv-thin">n</span><span class="efpv-bold">n</span></span><span class="efpv-cell" style="--i: 2"><span class="efpv-thin">c</span><span class="efpv-bold">c</span></span><span class="efpv-cell" style="--i: 3"><span class="efpv-thin">r</span><span class="efpv-bold">r</span></span><span class="efpv-cell" style="--i: 4"><span class="efpv-thin">e</span><span class="efpv-bold">e</span></span></span> <span class="efpv-word"><span class="efpv-cell" style="--i: 5"><span class="efpv-thin">&</span><span class="efpv-bold">&</span></span></span> <span class="efpv-word"><span class="efpv-cell" style="--i: 6"><span class="efpv-thin">p</span><span class="efpv-bold">p</span></span><span class="efpv-cell" style="--i: 7"><span class="efpv-thin">l</span><span class="efpv-bold">l</span></span><span class="efpv-cell" style="--i: 8"><span class="efpv-thin">o</span><span class="efpv-bold">o</span></span><span class="efpv-cell" style="--i: 9"><span class="efpv-thin">m</span><span class="efpv-bold">m</span></span><span class="efpv-cell" style="--i: 10"><span class="efpv-thin">b</span><span class="efpv-bold">b</span></span></span></span></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efpv-text"} -->
<p class="efpv-text">Faire-part, cartes de visite et affiches composés à la main en caractères mobiles, puis imprimés sur nos presses Heidelberg de 1962.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->:root {
--efpv-bg: #f4efe6;
--efpv-ink: #1f1a17;
--efpv-red: #b42318;
--efpv-muted: #4a403a;
--efpv-accent: #1f1a17;
--efpv-accent-text: #f4efe6;
--demo-effet-texte-cinetique-poids-variable-bg: #e9e2d6;
--demo-effet-texte-cinetique-poids-variable-text: #1f1a17;
}
@media (prefers-color-scheme: dark) {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