Tracking In
Letter-spacing collapses and blur clears with a springy entrance. A free, MIT-licensed Remotion text animation.
In Remotion, Tracking In collapses the letter spacing of a title from wide to normal while the blur clears, with a springy feel, and moves all the letters together as one unit. Use it for a title or brand name that should feel like it is focusing into place.
$ pnpm dlx shadcn@latest add @remocn/tracking-inGood to know
- Length: 90 frames of motion at 30 fps (180 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotionfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font: Geist Sans through the
--font-geist-sansCSS variable, with a system sans fallback. The font is set inline, so change it in the copied file; aclassNamefont does not override an inline style. - The motion runs on Remotion's
spring();startTracking(in em) andstartBlur(in px) set where it starts.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { TrackingIn } from "@/components/remocn/tracking-in";
const TrackingInScene = () => (
<TrackingIn text="REMOCN" startTracking={0.6} startBlur={14} />
);
export const RemotionRoot = () => (
<Composition
id="TrackingIn"
component={TrackingInScene}
durationInFrames={180}
fps={60}
width={1280}
height={720}
/>
);Props8
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The text to animate | |
| startTracking | number0.5 Initial letter-spacing in em. Animates down to -0.03em. | |
| startBlur | number12 Initial blur radius in pixels. Animates down to 0. | |
| fontSize | number96 Font size in pixels | |
| fontWeight | number700 CSS font-weight | |
| color | string"#171717" Text color (any valid CSS color) | |
| speed | number1 Playback speed multiplier (1 = normal, 2 = twice as fast) | |
| className | string— Optional className passed to the underlying span | |
- textrequiredstring
The text to animate
- startTrackingnumber
Initial letter-spacing in em. Animates down to -0.03em.
Default
0.5 - startBlurnumber
Initial blur radius in pixels. Animates down to 0.
Default
12 - fontSizenumber
Font size in pixels
Default
96 - fontWeightnumber
CSS font-weight
Default
700 - colorstring
Text color (any valid CSS color)
Default
"#171717" - speednumber
Playback speed multiplier (1 = normal, 2 = twice as fast)
Default
1 - classNamestring
Optional className passed to the underlying span