Enhance Count
Blur-to-sharp weight animation for Remotion: text starts blurry and thin, then sharpens into a heavier weight with the last word in an accent color, draft to polished.
In Remotion, Enhance Count makes text start as a blurry, thin line and sharpen into a heavier weight, glyph by glyph, with the last word in an accent color, like a draft becoming polished. Use it for a before-and-after message about quality.
$ pnpm dlx shadcn@latest add @remocn/enhance-countHow to build this in Remotion
You don't need to set up a variable font with @remotion/google-fonts yourself. Install the component:
npx shadcn@latest add @remocn/enhance-countEach glyph's sharpening is a spring() that drives both a CSS blur() and the wght axis through fontVariationSettings, sweeping across the text over span frames; the rest runs on interpolate() and Easing curves.
Good to know
- Length: 87 frames of motion at 30 fps (174 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top (the demo plays 120 frames). The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate. - Accent:
#6D5BFFin both themes; passaccentto change it. - The weight animation needs a variable font with a
wghtaxis. The default Inter Tight is loaded as a variable font; if you passfontFamily, load a variable face too. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Inter Tight itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { EnhanceCount } from "@/components/remocn/enhance-count";
const EnhanceCountScene = () => (
<EnhanceCount text={"Draft it fast.\nFinish it sharp."} highlight="sharp." />
);
export const RemotionRoot = () => (
<Composition
id="EnhanceCount"
component={EnhanceCountScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);The text enters thin and blurred, then each glyph sharpens and gains weight in a quick sweep so the line reads as finished. Pass text (use a newline for a second line) and highlight for the accented words; it ships light and dark through theme.
Props13
| Prop | Type | Default |
|---|---|---|
| text | string"Draft it fast.\nFinish it sharp." Text to show; newline starts a new line | |
| highlight | string"sharp." Word or words shown in the accent color | |
| accent | string— Accent color (any valid CSS color) | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Overrides the theme's stage color | |
| fontFamily | string"Inter Tight" Typeface for the copy. The default is loaded for you; load any other font in your project first. | |
| fontWeight | number440 Weight the glyphs settle on. | |
| draftWeight | number100 Weight the glyphs start from before they sharpen. | |
| span | number34 Frames the sharpening sweeps across the whole text. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback speed multiplier | |
| theme | "dark" | "light""dark" Ships light and dark palettes | |
- textstring
Text to show; newline starts a new line
Default
"Draft it fast.\nFinish it sharp." - highlightstring
Word or words shown in the accent color
Default
"sharp." - accentstring
Accent color (any valid CSS color)
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Overrides the theme's stage color
- fontFamilystring
Typeface for the copy. The default is loaded for you; load any other font in your project first.
Default
"Inter Tight" - fontWeightnumber
Weight the glyphs settle on.
Default
440 - draftWeightnumber
Weight the glyphs start from before they sharpen.
Default
100 - spannumber
Frames the sharpening sweeps across the whole text.
Default
34 - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier
Default
1 - theme"dark" | "light"
Ships light and dark palettes
Default
"dark"
Common questions
How do I make text start blurry and thin and sharpen into a heavier weight in Remotion?
Install Enhance Count with npx shadcn@latest add @remocn/enhance-count, pass text and the highlight words. draftWeight and fontWeight set the start and end weight.
Which font works?
Any variable font with a weight axis. Inter Tight is loaded for you.
Related effects
- Focus Blur Resolve: a premium focus pull from heavy blur to crisp text, then a soft blur-out exit.
- Weight Wave: a wave of font weight travels across a line of text and settles on a highlighted word.
- Axis Flex: a gradient word flexes its width and weight like an elastic variable font, then snaps to a final style.