Typewriter heading in WordPress
A heading that types itself letter by letter behind a blinking caret, 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, Titre en machine à écrire
* Description: Un titre qui s’écrit lettre par lettre derrière un curseur clignotant, en CSS seul. Ajoute la composition « Titre en machine à écrire » à 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-machine-a-ecrire
*<!-- wp:group {"tagName": "section", "className": "efme", "layout": {"type": "default"}} -->
<section class="wp-block-group efme"><!-- wp:paragraph {"className": "efme__eyebrow"} -->
<p class="efme__eyebrow">Camille Roux · Développeuse web freelance à Lille</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efme__title", "anchor": "efme-titre"} -->
<h2 class="wp-block-heading efme__title" id="efme-titre"><span class="efme__typed">Je code votre site.<span class="efme__mask" aria-hidden="true"></span></span></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efme__text"} -->
<p class="efme__text">Sites vitrines rapides, accessibles et faciles à modifier, livrés en trois semaines avec une formation pour être autonome.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<a class="efme__link" href="#efme-contact">Parlons de votre projet</a>:root {
--efme-bg: #f8fafc;
--efme-text: #0f172a;
--efme-body: #475569;
--efme-cursor: #15803d;
--efme-accent: #15803d;
--efme-on-accent: #ffffff;
--demo-effet-texte-machine-a-ecrire-bg: #eef2f6;
--demo-effet-texte-machine-a-ecrire-text: #0f172a;
}
@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