Skip to content

Text infinity

Playground

Text

Colour

Install

npm install @shavin/fx
import { TextInfinity } from "@shavin/fx";

Works with

React

Client component; Next.js and any React 18+ app

Remotion

Frame-exact through FxTimeProvider or time

Usage

A phrase that travels along a figure-eight path, with * between repeats.

Component Source
import { TextInfinity } from "@shavin/fx";

<TextInfinity text="A DIN CLUB" separator=" * " className="font-semibold" />

Props

PropTypeDefaultDescription
text*string—The phrase; repeated to fill the path and used as the accessible label.
separatorstring" · "Placed between repeats.
durationnumber20Seconds per loop.
direction1 | -11Direction of travel.
tiltnumber0Degrees the path leans back, 0 (face-on) to 90 (edge-on).
rotatenumber0Degrees the whole figure turns in the page plane.
fontSizenumber64Font size in layout units (the effect is 1000 units wide).
colorFxColor"fg"Text colour: a theme token (fg, brand, muted), any CSS colour or var(--token), or a { light, dark } pair.
toneFxColor—Deprecated: use color.
timenumber—Controlled time in seconds (e.g. frame / fps in Remotion); also read from FxTimeProvider.

* required

Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font