<TextMorph />

Text continuity for interfaces on the web.

A plugin changes how torph cuts text up, how it moves, or both. Put one in front of classic(), torph's default set.

import { classic } from "torph";
import { blur } from "torph/plugins/blur";

<TextMorph plugins={[blur(), ...classic()]}>
  {value}
</TextMorph>

blur()

Letters rise into focus and blur away.

words()

A changed word swaps whole.

scramble()

Letters scramble in and out.

flap()

Letters flip like a departure board.

typewriter()

Backspaces, then types the new text.

tokens()

Identifiers change at their joins.

05:00

odometer()

Each wheel turns the way the value went.

wave()

Letters drop in with a bounce.

caseless()

A change of case pops in place.

stack()

The whole value slides like a card.

squash()

Stretch, squash and splat.

countup()

Counts through the values between.

rows()

Reordered lines slide to their place.

$1,284.20

trend()

Flashes green up, red down.

reveal()

Each place turns over to its new character.

redline()

Track changes: struck out, then underlined.

Mix them

Any of them together, on your own text.

classic()
in front of it
<TextMorph>{value}</TextMorph> // classic()