SkillAgentSearch skills...

Calligraph

Fluid text transitions powered by Motion.

Install / Use

/learn @raphaelsalaja/Calligraph
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Calligraph

npm version npm downloads

Fluid text transitions powered by Motion. Shared characters slide to their new positions while entering characters fade in and exiting ones fade out.

Install

npm install calligraph

Usage

import { Calligraph } from "calligraph";
import { useState } from "react";

function App() {
  const [text, setText] = useState("Hello");

  return (
    <>
      <Calligraph>{text}</Calligraph>
      <button onClick={() => setText("World")}>Change</button>
    </>
  );
}

When children changes, characters common to both strings slide into their new positions. New characters fade in, removed characters fade out.

Custom transitions

<Calligraph transition={{ type: "spring", stiffness: 200, damping: 20 }}>
  {text}
</Calligraph>

Requirements

  • React 18+
  • Motion 11+

Sponsors

If Calligraph is useful to you or your team, consider sponsoring the project.

See also

  • Torph — dependency-free animated text morphing
  • NumberFlow — animated number transitions
  • NumericText — SwiftUI-style .numericText for the web

Acknowledgments

  • Jace for pushing me to build this
  • Inspired by Family
View on GitHub
GitHub Stars175
CategoryDevelopment
Updated1d ago
Forks9

Languages

TypeScript

Security Score

100/100

Audited on Apr 5, 2026

No findings