Torph
torph.lochie.me · Motion · Open source
Text component that animates smoothly from one word or phrase to the next, for React, Vue, Svelte or plain TypeScript.
What it is
A TextMorph component that animates from the old text to the new one whenever the text changes. Numbers roll by place value, so 1,204 to 1,318 only moves the digits that changed, and plugins change the look, for example a blur or swapping whole words. The site shows it on things like a button that goes from Processing to Transaction Safe, or a Copy label that becomes Copied.
Is it for you?
- Made for
- Front-end developers who want status labels and buttons to change text without a jarring jump.
- You need
- React, Vue, Svelte or plain TypeScript, installed from npm
- Price
- Open source (MIT)
What you can do with it
- Button labels that change from Copy to Copied
- Status text during a payment or upload
- Animated price or number changes
- Rotating words in a headline


