Highlighter-marked words in WordPress
A heading whose key words get highlighted one after the other, as if by a stroke of a highlighter pen.
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, Mots surlignés au marqueur
* Description: Un titre dont les mots clés se font surligner l’un après l’autre, comme d’un coup de marqueur fluo. Ajoute la composition « Mots surlignés au marqueur » à 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-surlignage-marqueur
*<!-- wp:group {"className": "efsm", "layout": {"type": "default"}} -->
<div class="wp-block-group efsm"><!-- wp:paragraph {"className": "efsm__eyebrow"} -->
<p class="efsm__eyebrow">Cabinet Lemaire · Expertise comptable à Tours</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level": 2, "className": "efsm__title"} -->
<h2 class="wp-block-heading efsm__title">Une comptabilité <span class="efsm__mark">enfin lisible</span>, des déclarations <span class="efsm__mark efsm__mark--late">toujours à l’heure</span>.</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"className": "efsm__text"} -->
<p class="efsm__text">Tableau de bord chaque mois, échéances rappelées quinze jours avant et un interlocuteur unique qui répond sous 24 heures. Le premier rendez-vous est offert.</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<a class="efsm__link" href="#efsm-rendez-vous">Prendre rendez-vous</a>:root {
--efsm-text: #1c1917;
--efsm-body: #57534e;
--efsm-mark: #fde047;
--efsm-accent: #854d0e;
--efsm-on-accent: #ffffff;
--demo-effet-surlignage-marqueur-bg: #fffdf5;
--demo-effet-surlignage-marqueur-text: #1c1917;
}
@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