# Torph

> Animated text morphing: labels change letter by letter instead of swapping.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/torph

free

Animated text morphing: labels change letter by letter instead of swapping.

by Lochie Axon[GitHub](https://github.com/lochie/torph)[npm](https://npmjs.com/package/torph)

[visit](https://torph.lochie.me/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://torph.lochie.me](https://torph.lochie.me/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

no preview

### [NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

Animated number component: digits roll to the new value, formatted with Intl.NumberFormat.

no preview

### [GSAP SplitText](https://tastebase.ehsanulsiam.workers.dev/browse/gsap-splittext)

Splits text into lines, words and characters (with masks) for staggered reveal animations.

no preview

### [useScramble](https://tastebase.ehsanulsiam.workers.dev/browse/use-scramble)

1 KB React hook that scrambles text through random characters before settling (decrypt effect).

## Try it

## Looks that pick it

[Minimalfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/minimal)[Apple-likefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/apple)[Editorialfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/editorial)[Retrofirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/retro)[Technical / dev-toolfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/technical)[Luxuryfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/luxury)[Organic / softfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/organic)[Mesh gradientfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/mesh-gradient)[Grainy gradientfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/grainy-gradient)[Neumorphismfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/neumorphism)[iOS nativefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/ios-native)[macOS desktopfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/macos-desktop)[and 51 more](https://tastebase.ehsanulsiam.workers.dev/looks)

## For your agent

##### Install

`npm i torph`

##### Use it for

- copy button that confirms in place (Copy -> Copied)
- status labels that progress (Processing -> Sent)
- tabs or toggles whose label text changes

##### Skip it when

- long paragraphs or body copy: morphing many glyphs reads as noise
- numbers that count or roll: use number-flow instead
- headline reveals on scroll: use gsap-splittext

##### What's inside11 free

- TextMorph (React)
- useTextMorph
- TextMorph (Vue)
- TextMorph (Svelte)
- TextMorph (vanilla)
- Spring animations
- Numbers (place-value morph)
- Editable fields (cursorIndex)
- Multi-line text
- segmentText
- diffSegments

##### Facts

**Frameworks**
react, vue, svelte, solid, angular, vanilla

**Styling**
unstyled

**Weight**
tiny

**Accessibility**
ok

**Maturity**
experimental

**License**
MIT

**Price**
Free

##### Pairs with

[Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)[NumberFlow](https://tastebase.ehsanulsiam.workers.dev/browse/number-flow)

##### Alternatives

[Motion](https://tastebase.ehsanulsiam.workers.dev/browse/motion)

```
import { TextMorph } from 'torph/react'

<TextMorph>{copied ? 'Copied' : 'Copy'}</TextMorph>
```

https://torph.lochie.me/examples

Loading website

[Visit](https://torph.lochie.me/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
