A title whose i and j dots and closing period are real balls: they hop from letter to letter toward the pointer and pile into an exclamation mark on click.
Move your pointerTouch and move
Billing run · October
Draft
Six invoices to send.
Each client gets a PDF and a payment link. Reminders start after 14 days.
Use on a title of 32px and up with an i, j or closing mark that confirms or invites. Dots hop toward the pointer; set stacked from your own state to pile them into a "!".
When not to use
Not for titles without i, j or a closing mark, or small text. For eyes that follow the pointer use Counter Eyes.
Use Tittle Hop for a title that confirms or invites: a "Sent to six clients." after a batch, an empty state, a step in an onboarding flow. The dots of the i and the j, and the period that closes the sentence, are real balls in your primary color. They hop toward the pointer, swap places with the dot they land on, and pile into an exclamation mark when your app confirms something. The text stays real, in your own font. It works from about 32px up and needs at least one i, j or closing mark in the text; a title without them has nothing to hop. For body text or a title that should stay quiet, use plain text.
import { TittleHop } from "@/components/ui/tittle-hop"export function Confirmation({ sent }: { sent: boolean }) { return ( <TittleHop stacked={sent} className="pt-10"> <h2 className="text-5xl font-semibold tracking-tight"> <TittleHop.Text>{sent ? "Sent to six clients." : "Six invoices to send."}</TittleHop.Text> </h2> </TittleHop> )}
TittleHop is the scope: the pointer anywhere inside it calls the dots and focus entering it sends them on a trip. TittleHop.Text goes inside your heading and wraps the text; its dotted characters are the only ones touched. Leave some room above the title, because the dots hop above the line.
By default the characters i j . ! ? are eligible, and ., ! and ? only when they close a word. include narrows the list. Dots take your --primary when it has color and --brand when --primary is a neutral gray; ballColor overrides it. In dark themes the color is capped in lightness so a pale primary does not read as gray.
Presets change how the dots answer the pointer, never the drawing:
relay (default): the first dot of the pointer's line hops straight to the nearest dotted letter and swaps with that dot.
karaoke: it bounces letter by letter, never skipping one.
pop: each dot hops in place as the pointer passes, the neighbours answering smaller.
intensity (0.6 to 1.4) sets the jump height in x-heights; it never changes the size or the color of the dots.
stacked is the feedback channel. While it is true every dot stands over the closing mark as one "!" and stays there until it turns false. Use it for an event your app confirms (sent, published, paid). Left undefined, a click or tap on the title piles the dots for a moment and they hop home.
Set the character for the whole app with MotionKitProvider, or per instance with temperament (calm, lively, playful). It changes motion intensity only, never the drawing.
The default demo: a billing run in an invoicing app. One dot runs along the line as the panel comes in. Point at the title and the first dot hops to the i under the pointer, swapping with that dot. "Send 6 invoices" is the app event: the title becomes the confirmation and stacked piles the dots into an exclamation mark for a moment.
Move your pointerTouch and move
Billing run · October
Draft
Six invoices to send.
Each client gets a PDF and a payment link. Reminders start after 14 days.
preset="karaoke" on the current step of an onboarding flow. The dots bounce letter by letter toward the pointer. "Send invites" sets stacked, and the dots pile into an exclamation mark while the step completes.
Move your pointerTouch and move
Set up Ledgerly
2 of 3
Create the workspace
Connect a bank account
Invite your team
Bring in your team.
Approvers see the queue the moment they join. You can change roles later.
shape turns the dots into a built-in piece or any SVG path with its viewBox: { d, viewBox }, fitted to the dot's box with the same color, size and hops. The "!" pile keeps its capsule.
Charge. The pointer calls a dot: it stretches on its stem before it leaves.
Action. The ball hops over the letters, never leaving its line and never touching a glyph, and lands on the stem nearest the pointer. It swaps with the dot that was there, which hops back low into the empty seat.
Settle. The ball lands flattened against the stem and rebounds in a few lobes. A click or tap makes the dots of the closing mark's line jump to it and pile; the pile merges into one pill that springs up to the cap height, holds for about 600 ms, shrinks, splits, and every dot hops home. The dots of other lines cheer in place, since they never cross a line of text.
On the first view one dot per line runs a trip along its line, all lines at once, then rests. intro={false} skips it.
The text is the original text. Each dotted character stays in an inline span, with its own dot hidden by a mask measured from your font, so the DOM, the selection and copy return the title as written. The balls are an overlay marked aria-hidden with pointer-events: none.
The balls never carry information. If the title changes with an event, announce the change with a live region of your own, as the demos do.
The text keeps your foreground color and font. Balls use the primary or brand color; in dark themes the lightness is capped, so the ball stays a clear color on a dark background (4:1 or more, measured).
Nothing in the component is focusable. Controls placed in the scope keep their own focus order and rings.
With reduced motion every ball stays at home, on the dot of its own letter, and the title reads as ordinary text with colored dots. The pointer, click, focus trip and intro do nothing. A controlled stacked still confirms: while it is true the closing mark shows the finished "!" at once, with no hop and no spring, and the dots come back when it turns false. If the closing mark's line has no other dot there is no pile to show, so the dots stay home. Nothing disappears.
One requestAnimationFrame loop per text, running only while a dot moves; it stops when everything rests.
Balls move with transform. The pill that forms the "!" is built from three parts moved by transform as well.
When the text leaves the viewport or the tab is hidden, the loop is cancelled and every ball goes back to its home at once, with no pile. The first trip runs when the text is first seen.
Dots are measured from your font on an offscreen canvas and cached, and measured again on resize, when the text changes and when a web font loads.
The pointer is followed with pointermove on the scope. Touch pointers are ignored for following: a tap piles the dots, and a touch has no hover to call them.
interactive={false} removes pointer, focus and click handling; the intro and stacked still play.
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
Triggers
pointer movement, press, keyboard focus, entering the viewport
Reduced motion
The dots sit on their letters as balls in the primary color; no hop, no pile, no intro.
Keyboard
Tab
Focus inside the scope sends one dot along the whole line
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)