Kinetic typography: words that build themselves
Letters rise and turn into place one after another, hold, then lift away. Eight seconds, then it starts again.
Motion loop
Words that build themselves
Sundry Millsundrymill.com/library
Everything in the preview is live. Try it.
The font
Set in Satoshi (Fontshare) with one word in Instrument Serif Italic (Google Fonts). Both free. The pair has its own page.
The code
Kinetic type
Write the sentence in plain text with data-kinetic; the script splits it.
HTML
<p class="kt" data-kinetic>Make small things well.</p>
CSS
.kt {
margin: 0;
font: 900 clamp(2.4rem, 11vw, 4.2rem)/1.02 'Satoshi', system-ui, sans-serif;
letter-spacing: -0.03em;
color: #17202C;
}
.kt-w { display: inline-block; white-space: nowrap; }
.kt-serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: #D9581A; letter-spacing: 0; }
.kt-l {
display: inline-block;
opacity: 0;
transform: translateY(.6em) rotate(8deg);
animation: kt-in 8s cubic-bezier(.05, .7, .1, 1) infinite both;
animation-delay: calc(var(--i) * 45ms);
}
@keyframes kt-in {
0% { opacity: 0; transform: translateY(.6em) rotate(8deg); }
8%, 80% { opacity: 1; transform: none; }
90%, 100% { opacity: 0; transform: translateY(-.35em); }
}
JavaScript
// Wraps each letter in a span with its index, keeps words together,
// and gives the sentence one label for screen readers.
document.querySelectorAll('[data-kinetic]').forEach((el) => {
let i = 0;
const words = el.textContent.trim().split(/\s+/);
el.setAttribute('aria-label', words.join(' '));
el.innerHTML = words
.map((w) => '<span class="kt-w" aria-hidden="true">' +
[...w].map((ch) => '<span class="kt-l" style="--i:' + i++ + '">' + ch + '</span>').join('') +
'</span>')
.join(' ');
});
How to use it
- The script wraps each letter in a span with an index, and the CSS delays each letter by 45 ms times that index. Change 45 to speed it up or slow it down.
- Screen readers get the whole sentence once from the aria-label, not letter by letter.
- Short lines work best. Four or five words is plenty for a loop.
When to use it
- A short tagline in a hero, the opening of a video, a slide title, a social post that should move.
- Four or five words with one word worth stressing. The serif italic word is where the eye lands.
- Not for headings people need to read at once, like a price or a warning, and not for whole paragraphs.
A worked example: a tagline for a launch page
The page opens on four words that build themselves, then stays put.
- Write
<p class="kt" data-kinetic>Record less, show more.</p>and include the script. It splits the letters and sets the aria-label for you. - For a page rather than a loop, the letters need a one way animation that ends visible. The loop's keyframes fade the words out again at the end, so give the paragraph a second class and the keyframes below, which run once and stop.
- The script makes plain words. To set one word in the serif italic, as in the preview, write the spans by hand like the preview's HTML and give that word's kt-w span the kt-serif class too.
- In a reduced motion check, show the sentence still. The words matter more than the motion.
Build once, then stay
.kt--once .kt-l { animation: kt-once .8s cubic-bezier(.05, .7, .1, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes kt-once { from { opacity: 0; transform: translateY(.6em) rotate(8deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kt .kt-l { animation: none; opacity: 1; transform: none; } }
Want words moving like this over a video? Reyoy turns a post into a vertical video, free.
Free to use in personal and commercial work. No credit needed, though a link back is always nice.