Personal Story – “From a jQuery Idea 10 Years Ago to the 2026 Rewrite”
AI-generatedContents
Ten years ago I had an idea: What if individual letters could fly smoothly from one text to the next – like an anagram solving itself in real time? The idea became a jQuery plugin. Then… nothing happened. For ten years. Until now.
The idea
It started with a simple observation: Text animations on the web were boring. Fade in, fade out. Slide up, slide down. Typewriter effect. Always the same.
I asked myself: What actually happens to the individual letters when a text changes? The word “Creativity” and the word “Creative force” share almost all of their letters – only a few have to move. What if you could make that visible?
The idea: Every letter that appears in both texts flies to its new position. Letters that disappear fade out. New letters fade in. The result looks like an anagram solving itself in real time.
After some tinkering, I had an algorithm that could do exactly that. I built it as a jQuery plugin – the standard tool of the time – and it worked. I was honestly proud.
And then? Then other projects came. Other priorities. For ten years TextTweener sat idle in the repository – functional, but frozen in time.
What TextTweener does
TextTweener animates transitions between texts at the letter level. Instead of swapping out the whole text, every single letter is analyzed: Does it appear in the next text? Where does it need to go? How far is the way?
The result: An animation that looks complex but is based on an elegant principle. Here are a few examples – watch how the shared letters find their way:
Communicating services
Conveying emotions
Letting numbers speak
Why does this look so good?
The trick is the nearest-neighbor algorithm. Classic text animations match letters by position: the 3rd “e” flies to the 3rd “e”. TextTweener instead finds the physically nearest “e” – which produces shorter, more natural flight paths that the eye perceives as organic movement.
Why only now?
The honest answer: There was never enough time. TextTweener as a jQuery plugin worked. It had no bugs. It just… gathered dust.
But in 2026 the web platform is a different one than in 2016. CSS animations are GPU-accelerated. TypeScript has become established. ES modules are standard. WordPress has the block editor. And I finally had the leisure to give TextTweener the rewrite it deserves.
Not patching. Not porting. Rethinking it completely.
Old vs. new
| 2016 | 2026 | |
|---|---|---|
| Foundation | jQuery plugin | Zero dependencies, TypeScript |
| Size | jQuery + plugin | 4.3 KB gzipped |
| Animation | JavaScript-driven | CSS transforms, GPU-accelerated |
| Matching | Index-based (3rd e → 3rd e) | Nearest neighbor (nearest e) |
| Container | Fixed size required | Auto-sizing |
| API | jQuery methods | Promise-based, events, play/pause |
| Accessibility | None | aria-live, prefers-reduced-motion |
| Platforms | Web only | Web + WordPress + After Effects |
Three platforms, one algorithm
TextTweener 2026 is not just a JavaScript library. The same matching algorithm runs on three platforms – each optimized for a different workflow.
npm / JavaScript – for developers
The core library. 4.3 KB gzipped, zero dependencies. Works with any framework or vanilla. npm install texttweener and off you go.
WordPress – for content creators
A native Gutenberg block with visual controls: enter texts, set timing with a slider, choose easing, define alignment, adjust font size. No code needed. The demos in this article all use the WordPress block.
After Effects – for motion designers
An ExtendScript that uses the same algorithm to generate position and opacity keyframes for every letter layer. Perfect for intros, title animations and social media clips.
Consistent animation everywhere
Whether on the website, in the WordPress editor or in After Effects – the animation looks the same everywhere. Same algorithm, same nearest-neighbor matching, same organic feel.
For developers: get started in 30 seconds
npm install texttweener
import { TextTweener } from 'texttweener';
const tt = new TextTweener('#hero', {
texts: [
'Wir produzieren Filme',
'Wir entwickeln Websites',
'Wir bauen KI-Lösungen',
],
transitionDuration: 900,
stagger: 18,
});
// Das war's. Auto-play, auto-size, loop.
Full API control with play(), pause(), next(), prev(), goTo() – all Promise-based. Lifecycle events for beforeTransition, afterTransition, change and more.
Or simply via script tag without a build process:
<script src="https://unpkg.com/texttweener/dist/index.umd.min.js"></script>
<script>
new TextTweener('#hero', {
texts: ['Hello', 'Hallo', 'Bonjour', 'Ciao'],
});
</script>
Full documentation
You will find all options, the complete API reference, events, accessibility features and browser support on the TextTweener project page.
Open source
TextTweener is MIT-licensed. Free to use for private and commercial projects. The complete source code is on GitHub.
Why open source? Because the idea sat in a drawer for ten years. It deserves to be used – by as many people as possible.
Checklist
Michael Rademacher
Founder of realmaker
Michael Rademacher founded realmaker in 2003. He develops WordPress websites and software, produces films and live streams, and writes here about what he learns in client projects.
About MichaelGot a product idea?
Tell me about it. In a free initial call – 30 minutes by video or phone – we clarify the goal, the scope and the most sensible way forward.
