Line-by-line heading reveal
The lines of a large heading rise one after the other from behind a mask, like film credits, in pure CSS.
- Tailwind
- React
- CSS
- WordPress
Description
On load, each line of the heading slides up from inside its own window, with a slight delay between lines; the paragraph and button are readable from the very first moment: the elegant opening of architect, agency, photographer or fashion brand sites. The heading remains a single h2 read in one go by screen readers; the lines are plain spans. Only the transform is animated, once, with no script. Set the rhythm with each line’s --efrl-i variable and the easing in the efrl-rise animation. System serif, AA contrast in light and dark mode, no horizontal scrolling from 360 px. With prefers-reduced-motion the heading shows straight away.
Code
Loading the code…
The code of this component in
Archive contents
effet-revelation-lignes-titre-html-tailwind.zip3 files · 4 Ko
- index.html3 Ko
- README.md3 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

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