Strike
Text
Put the old word and the new one in {curly|braces}, split by a bar.
Type
Colour
Ground
Motion
Launch in
About this effect
Strike tells the story of a change in one line: "launch in months" becomes "launch in days". A pen line slashes through the old word, the old word fades back, and the new one pops in above it at a slight tilt, like a correction written in the margin of a proof. It suits a hero that makes a before and after promise.
The old word and its line stay in the sentence, so the line keeps its shape; the correction sits above it and never pushes the text about. The line is an SVG path drawn with a dash, and screen readers hear the corrected sentence once.
Put the old word and the new one in curly braces, split by a bar. Short words read best; leave room above the line for the correction.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Instrument Serif
- Plays
- Loop, In view, On load, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. The heading is named by the corrected sentence, read once; the struck word, its line and the correction are hidden from screen readers. Under reduced motion everything is already in place.
Also known as strikethrough text animation, crossed out text, text correction effect, replace word animation, editor markup text, hand drawn strikethrough.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.