<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>

Everyday

Quiet transitions for headings, labels and buttons.

mask()

New text rises into place behind a mask.

fadeUp()

New text fades up into place.

cascade()

Text arrives a line at a time.

ticker()

New text pushes the old out.

fadeThrough()

Fades out, then fades in growing.

sharedAxis()

Old leaves one way, new arrives the other.

blur()

Letters rise into focus and blur away.

words()

A changed word swaps whole.

Numbers

Counters, prices and readouts.

05:00

odometer()

Each wheel turns the way the value went.

countup()

Counts through the values between.

$1,284.20

trend()

Flashes green up, red down.

roll()

The value rolls round like a barrel.

slot()

Changes roll through a window.

reveal()

Each place turns over to its new character.

flap()

Letters flip like a departure board.

Editing and structure

Text that is being written, reordered or reviewed.

redline()

Track changes: struck out, then underlined.

rows()

Reordered lines slide to their place.

tokens()

Identifiers change at their joins.

caseless()

A change of case pops in place.

typewriter()

Backspaces, then types the new text.

Playful

Character for a moment that wants it.

squash()

Stretch, squash and splat.

wave()

Letters drop in with a bounce.

stamp()

New text slams down like a stamp.

stack()

The whole value slides like a card.

scramble()

Letters scramble in and out.

lookalike()

Letters step through lookalike glyphs.

smoke()

Old text wisps away like smoke.

glitch()

Changes come through a glitch.

neon()

Flickers on like a neon tube.

shatter()

Old text cracks into falling shards.

dissolve()

Letters break into dots and gather.

ripple()

New letters ripple out from the change.

Mix them

Any of them together, on your own text.

classic()
how text moves
how text splits
for numbers
on top of any
<TextMorph>{value}</TextMorph> // classic()