← Catalog
No preview yet
Source
515 lines// Profile Follower Climb: a MOMENT (hook).
//
// A phone shows a social profile. The follower count ticks up in seven
// steps on the source's own curve, pops on the final number, then the
// camera pushes in on the stats and circles the followers.
//
// Rebuilt from "The Only AI Influencer Side Hustle That Actually Pays!"
// (Wealth Wisdom, youtube.com/watch?v=ketIzKnJoI4). Timing is authored in
// frames at 30 fps and scaled to the composition's fps, so the beats below
// hold at any frame rate.
//
// Laid out on a 1920x1080 design stage and fitted to the frame by a tight
// box around the phone, so portrait and square frames get a big phone
// rather than a letterboxed one. Screen coordinates below are relative to
// the phone's 390x844 screen.
import { loadFont } from '@remotion/google-fonts/InterTight';
import type { CSSProperties } from 'react';
import {
AbsoluteFill,
Easing,
Img,
interpolate,
useCurrentFrame,
useVideoConfig,
} from 'remotion';
const { fontFamily: INTER_TIGHT } = loadFont('normal', {
weights: ['400', '700', '900'],
subsets: ['latin'],
});
export type ProfileFollowerClimbProps = {
avatar: string;
handle: string;
displayName: string;
bioLine1: string;
bioLine2: string;
posts: string;
following: string;
followersStart: number;
followersEnd: number;
postImages: string[];
backgroundColor: string;
ringColor: string;
postsHighlightColor: string;
followersHighlightColor: string;
};
/** The beats, in frames at 30 fps. Mirrored in the meta's `moment.beats`. */
export const beats = [
{ label: 'profile in', from: 0, to: 6 },
{ label: 'follower climb', from: 0, to: 97 },
{ label: 'push in on stats', from: 65, to: 128 },
{ label: 'followers circled', from: 120, to: 144 },
];
const STAGE_W = 1920;
const STAGE_H = 1080;
// Tight box around the phone; the frame is fitted to this, not the stage.
const BOX_W = 640;
const BOX_H = 1080;
const PHONE_W = 418;
const PHONE_H = 872;
const BEZEL = 14;
const SCREEN_W = PHONE_W - BEZEL * 2;
// Frames (30 fps) where the follower count changes to the next step.
const CLIMB_FRAMES = [0, 24, 33, 47, 61, 75, 89];
// Share of the climb reached at each step, measured off the source
// (7.3K, 24K, 61K, 118K, 179K, 231K, 238K). Slow start, fast middle,
// a short settle before the last number.
const CLIMB_CURVE = [0, 0.072, 0.233, 0.48, 0.744, 0.97, 1];
const FALLBACK_TILES = [
'linear-gradient(150deg, #FBD3E9 0%, #BB377D 100%)',
'linear-gradient(150deg, #C6EA8D 0%, #2F9E7E 100%)',
'linear-gradient(150deg, #A1C4FD 0%, #4A5BD8 100%)',
'linear-gradient(150deg, #FFE29F 0%, #FF9A5A 100%)',
'linear-gradient(150deg, #D4C1FF 0%, #6B55F6 100%)',
'linear-gradient(150deg, #B8F3FF 0%, #2B8AC9 100%)',
];
// Fixed chrome, painted in order: [x, y, w, h, fill, radius].
type Rect = [number, number, number, number, string, number];
const BUTTONS: Rect[] = [
[16, 284, 156, 32, '#0095F6', 8],
[178, 284, 156, 32, '#EFEFEF', 8],
[340, 284, 34, 32, '#EFEFEF', 8],
];
const TAB_LINES: Rect[] = [
[0, 428, SCREEN_W, 0.8, '#DBDBDB', 0],
[0, 466, 130, 1.4, '#000000', 0],
];
const STATUS_RECTS: Rect[] = [
[288, 25.5, 3.4, 4.5, '#000000', 1],
[293, 23.5, 3.4, 6.5, '#000000', 1],
[298, 21.5, 3.4, 8.5, '#000000', 1],
[303, 19.5, 3.4, 10.5, '#000000', 1],
[336, 21, 18, 8, '#000000', 2],
[359, 23, 1.6, 4, '#000000', 0.8],
[132, 11, 126, 36, '#000000', 18],
];
// Line icons: [x, y, size, color, strokeWidth, path].
type IconSpec = [number, number, number, string, number, string];
// prettier-ignore
const ICONS: IconSpec[] = [
// add person
[347, 290, 20, '#000000', 1.5, 'M 7.5 9.2 C 9.2 9.2 10.4 7.9 10.4 6.2 C 10.4 4.6 9.2 3.3 7.5 3.3 C 5.8 3.3 4.6 4.6 4.6 6.2 C 4.6 7.9 5.8 9.2 7.5 9.2 Z M 2.5 16.7 C 2.5 13.3 4.6 11.7 7.5 11.7 C 10.4 11.7 12.5 13.3 12.5 16.7 M 15.0 6.7 L 15.0 11.7 M 12.5 9.2 L 17.5 9.2'],
// tabs: grid, reels, tagged
[53, 436, 24, '#000000', 1.8, 'M 4.0 4.0 L 10.0 4.0 L 10.0 10.0 L 4.0 10.0 Z M 14.0 4.0 L 20.0 4.0 L 20.0 10.0 L 14.0 10.0 Z M 4.0 14.0 L 10.0 14.0 L 10.0 20.0 L 4.0 20.0 Z M 14.0 14.0 L 20.0 14.0 L 20.0 20.0 L 14.0 20.0 Z'],
[183, 436, 24, '#A8A8A8', 1.8, 'M 4.0 5.0 L 20.0 5.0 L 20.0 19.0 L 4.0 19.0 Z M 10.0 9.0 L 15.0 12.0 L 10.0 15.0 Z'],
[313, 436, 24, '#A8A8A8', 1.8, 'M 12.0 12.0 C 14.0 12.0 15.5 10.5 15.5 8.5 C 15.5 6.5 14.0 5.0 12.0 5.0 C 10.0 5.0 8.5 6.5 8.5 8.5 C 8.5 10.5 10.0 12.0 12.0 12.0 Z M 5.0 20.0 C 5.0 16.5 8.0 14.5 12.0 14.5 C 16.0 14.5 19.0 16.5 19.0 20.0'],
// status bar wifi
[311, 15, 18, '#000000', 1.65, 'M 2.2 6.8 C 5.6 3.4 12.4 3.4 15.8 6.8 M 4.5 9.4 C 7.1 7.1 10.9 7.1 13.5 9.4 M 7.1 12.0 C 8.2 11.2 9.8 11.2 10.9 12.0'],
];
// prettier-ignore
const NAV_ICONS: IconSpec[] = [
[26, 800, 26, '#000000', 1.95, 'M 3.2 11.9 L 13.0 4.3 L 22.8 11.9 L 22.8 21.7 L 3.2 21.7 Z'],
[100, 800, 26, '#000000', 1.95, 'M 10.8 3.2 C 15.1 3.2 18.4 6.6 18.4 10.8 C 18.4 15.1 15.1 18.4 10.8 18.4 C 6.6 18.4 3.2 15.1 3.2 10.8 C 3.2 6.6 6.6 3.2 10.8 3.2 Z M 16.2 16.2 L 22.8 22.8'],
[174, 800, 26, '#000000', 1.95, 'M 4.3 4.3 L 21.7 4.3 L 21.7 21.7 L 4.3 21.7 Z M 13.0 8.7 L 13.0 17.3 M 8.7 13.0 L 17.3 13.0'],
[248, 800, 26, '#000000', 1.95, 'M 4.3 5.4 L 21.7 5.4 L 21.7 20.6 L 4.3 20.6 Z M 10.8 9.8 L 16.2 13.0 L 10.8 16.2 Z'],
];
// Text: [text, x, y, w, h, fontSize, weight, align, color].
// prettier-ignore
type TextSpec = [string, number, number, number, number, number, number, 'left' | 'center', string];
const clamp = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
const outCubic = Easing.out(Easing.cubic);
const abs = (
x: number,
y: number,
w: number,
h: number,
extra?: CSSProperties
): CSSProperties => ({
position: 'absolute',
left: x,
top: y,
width: w,
height: h,
...extra,
});
function compact(n: number): string {
const v = Math.max(0, Math.round(n));
if (v < 1000) return String(v);
if (v < 10_000) return `${(v / 1000).toFixed(1).replace(/\.0$/, '')}K`;
if (v < 1_000_000) return `${Math.round(v / 1000)}K`;
if (v < 10_000_000)
return `${(v / 1_000_000).toFixed(1).replace(/\.0$/, '')}M`;
return `${Math.round(v / 1_000_000)}M`;
}
function hasSrc(src: unknown): src is string {
return typeof src === 'string' && src.trim().length > 0;
}
function Rects({ rects }: { rects: Rect[] }) {
return (
<>
{rects.map(([x, y, w, h, fill, r], i) => (
<div
key={i}
style={abs(x, y, w, h, { background: fill, borderRadius: r })}
/>
))}
</>
);
}
function Icons({ icons }: { icons: IconSpec[] }) {
return (
<>
{icons.map(([x, y, size, color, sw, d], i) => (
<svg
key={i}
width={size}
height={size}
viewBox={`0 0 ${size} ${size}`}
style={abs(x, y, size, size, { overflow: 'visible' })}
>
<path
d={d}
fill='none'
stroke={color}
strokeWidth={sw}
strokeLinecap='round'
strokeLinejoin='round'
/>
</svg>
))}
</>
);
}
function Texts({ texts }: { texts: TextSpec[] }) {
return (
<>
{texts.map(([text, x, y, w, h, size, weight, align, color], i) => (
<div
key={i}
style={abs(x, y, w, h, {
fontSize: size,
fontWeight: weight,
color,
textAlign: align,
lineHeight: `${h}px`,
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
})}
>
{text}
</div>
))}
</>
);
}
/** A rounded rectangle whose stroke draws on as `progress` goes 0 to 1. */
function DrawBox(props: {
x: number;
y: number;
w: number;
h: number;
color: string;
progress: number;
opacity: number;
}) {
const { x, y, w, h, color, progress, opacity } = props;
const r = 14;
const perimeter = 2 * (w + h) - 8 * r + 2 * Math.PI * r;
return (
<svg
width={w + 10}
height={h + 10}
style={abs(x - 5, y - 5, w + 10, h + 10, { opacity })}
>
<rect
x={5}
y={5}
width={w}
height={h}
rx={r}
fill='none'
stroke={color}
strokeWidth={5}
strokeLinecap='round'
strokeDasharray={perimeter}
strokeDashoffset={perimeter * (1 - progress)}
/>
</svg>
);
}
/** A photo, or a color tile (with an initial, if given) when there is none. */
function Picture(props: {
src: string | undefined;
fallback: string;
style: CSSProperties;
initial?: string;
}) {
const { src, fallback, style, initial } = props;
if (hasSrc(src))
return <Img src={src} style={{ objectFit: 'cover', ...style }} />;
return (
<div
style={{
background: fallback,
color: '#FFFFFF',
fontWeight: 900,
textAlign: 'center',
fontSize: Number(style.height ?? 0) * 0.44,
lineHeight: `${style.height}px`,
...style,
}}
>
{initial}
</div>
);
}
export default function ProfileFollowerClimb({
avatar = '',
handle = 'yourbrand',
displayName = 'Your Name',
bioLine1 = 'Creator',
bioLine2 = 'New post every day.',
posts = '12',
following = '1',
followersStart = 7300,
followersEnd = 238000,
postImages = [],
backgroundColor = '#FAFAFC',
ringColor = '#D300C5',
postsHighlightColor = '#F5B83D',
followersHighlightColor = '#6B55F6',
}: Partial<ProfileFollowerClimbProps>) {
const frame = useCurrentFrame();
const { fps, width, height } = useVideoConfig();
// Design frames at 30 fps, whatever the composition runs at.
const t = (frame * 30) / fps;
const fit = Math.min(width / BOX_W, height / BOX_H);
// Camera: hold, then push in on the stats row.
const push = interpolate(t, [65, 128], [0, 1], {
...clamp,
easing: Easing.inOut(Easing.cubic),
});
const zoom = 1 + 0.7 * push;
const camY = STAGE_H / 2 + (319 - STAGE_H / 2) * push;
// Follower ticker: stepped, not continuous. That is the motion.
let step = 0;
CLIMB_FRAMES.forEach((f, i) => {
if (t >= f) step = i;
});
const start = Number.isFinite(followersStart) ? followersStart : 0;
const end = Number.isFinite(followersEnd) ? followersEnd : start;
const followerText = compact(start + (end - start) * CLIMB_CURVE[step]);
const finalPop =
step === CLIMB_FRAMES.length - 1
? interpolate(t, [89, 97], [1.18, 1], { ...clamp, easing: outCubic })
: 1;
const tiles = Array.from({ length: 6 }, (_, i) =>
Array.isArray(postImages) && hasSrc(postImages[i])
? postImages[i]
: undefined
);
const initial = (displayName || handle || '?').trim().charAt(0).toUpperCase();
const texts: TextSpec[] = [
[posts, 120, 124, 92, 26, 18, 700, 'center', '#000000'],
['posts', 120, 150, 92, 20, 14, 400, 'center', '#000000'],
['followers', 212, 150, 92, 20, 14, 400, 'center', '#000000'],
[following, 298, 124, 92, 26, 18, 700, 'center', '#000000'],
['following', 298, 150, 92, 20, 14, 400, 'center', '#000000'],
[displayName, 16, 198, 340, 20, 14.5, 700, 'left', '#000000'],
[bioLine1, 16, 220, 340, 19, 14, 400, 'left', '#000000'],
[bioLine2, 16, 239, 340, 19, 14, 400, 'left', '#000000'],
['Follow', 16, 284, 156, 32, 14, 700, 'center', '#FFFFFF'],
['Message', 178, 284, 156, 32, 14, 700, 'center', '#000000'],
];
const headerTexts: TextSpec[] = [
['‹', 12, 52, 30, 40, 34, 400, 'left', '#000000'],
[handle, 44, 59, 260, 30, 18, 700, 'left', '#000000'],
['···', 330, 57, 50, 30, 20, 700, 'center', '#000000'],
['9:41', 30, 15, 70, 24, 17, 700, 'center', '#000000'],
];
return (
<AbsoluteFill
style={{ backgroundColor, overflow: 'hidden', fontFamily: INTER_TIGHT }}
>
<div
style={{
...abs(width / 2, height / 2, STAGE_W, STAGE_H),
transformOrigin: '0 0',
transform: `scale(${fit * zoom}) translate(${
-STAGE_W / 2
}px, ${-camY}px)`,
}}
>
<div
style={abs((STAGE_W - PHONE_W) / 2, 104, PHONE_W, PHONE_H, {
borderRadius: 66,
background: '#16161A',
boxShadow: '0 28px 64px rgba(20,16,60,0.26)',
opacity: interpolate(t, [0, 6], [0, 1], {
...clamp,
easing: outCubic,
}),
})}
>
<div
style={abs(BEZEL, BEZEL, SCREEN_W, PHONE_H - BEZEL * 2, {
borderRadius: 52,
overflow: 'hidden',
background: '#FFFFFF',
})}
>
{/* Story ring + photo */}
<div
style={abs(16, 104, 88, 88, {
borderRadius: 44,
border: `3px solid ${ringColor}`,
boxSizing: 'border-box',
})}
/>
<Picture
src={avatar}
fallback={FALLBACK_TILES[4]}
initial={initial}
style={abs(21, 109, 78, 78, { borderRadius: 39 })}
/>
{/* Stats, name, bio, buttons */}
<Rects rects={BUTTONS} />
<Texts texts={texts} />
<div
style={abs(211, 123, 94, 28, {
opacity: interpolate(t, [1, 5], [0, 1], clamp),
transform: `scale(${finalPop})`,
})}
>
<Texts
texts={[
[followerText, 0, 1, 94, 26, 18, 700, 'center', '#000000'],
]}
/>
</div>
{/* Highlights reuse the first four posts, as the source does */}
{[0, 1, 2, 3].map((i) => (
<div key={`hl-${i}`}>
<div
style={abs(16 + i * 80, 332, 64, 64, {
borderRadius: 32,
border: '1.4px solid #DBDBDB',
boxSizing: 'border-box',
})}
/>
<Picture
src={tiles[i]}
fallback={FALLBACK_TILES[i]}
style={abs(20 + i * 80, 336, 56, 56, { borderRadius: 28 })}
/>
</div>
))}
{/* Tabs and the 3 x 2 post grid */}
<Rects rects={TAB_LINES} />
{tiles.map((src, i) => (
<Picture
key={`post-${i}`}
src={src}
fallback={FALLBACK_TILES[i]}
style={abs(
(i % 3) * 130.3,
468 + Math.floor(i / 3) * 162.7,
129.3,
161.7
)}
/>
))}
{/* Header and status bar */}
<div style={abs(0, 0, SCREEN_W, 98, { background: '#FFFFFF' })} />
<Texts texts={headerTexts} />
<div
style={abs(334, 19, 24, 12, {
borderRadius: 3.5,
border: '1.3px solid #000000',
boxSizing: 'border-box',
})}
/>
<Rects rects={STATUS_RECTS} />
<Icons icons={ICONS} />
{/* Bottom nav */}
<div
style={abs(0, 790, SCREEN_W, 54, {
background: '#FFFFFF',
borderTop: '0.8px solid #DBDBDB',
})}
/>
<Icons icons={NAV_ICONS} />
<Picture
src={avatar}
fallback={FALLBACK_TILES[4]}
style={abs(322, 800, 26, 26, { borderRadius: 13 })}
/>
<Rects rects={[[128, 830, 134, 5, '#000000', 2.5]]} />
{/* The two flags: posts first, followers after the push-in */}
<DrawBox
x={118}
y={110}
w={96}
h={62}
color={postsHighlightColor}
progress={interpolate(t, [6, 16], [0, 1], {
...clamp,
easing: outCubic,
})}
opacity={
interpolate(t, [5, 6], [0, 1], clamp) *
interpolate(t, [63, 69], [1, 0], clamp)
}
/>
<DrawBox
x={206}
y={110}
w={104}
h={62}
color={followersHighlightColor}
progress={interpolate(t, [120, 132], [0, 1], {
...clamp,
easing: outCubic,
})}
opacity={interpolate(t, [120, 121], [0, 1], clamp)}
/>
</div>
</div>
</div>
</AbsoluteFill>
);
}
Schema (Zod)
import { z } from 'zod';
export const Schema = z.object({
avatar: z
.string()
.default('')
.describe('$port:image Profile photo. Empty shows a colored initial.'),
handle: z.string().default('yourbrand').describe('Username in the header'),
displayName: z.string().default('Your Name').describe('Name above the bio'),
bioLine1: z.string().default('Creator').describe('First bio line'),
bioLine2: z
.string()
.default('New post every day.')
.describe('Second bio line'),
posts: z.string().default('12').describe('Posts count, as shown'),
following: z.string().default('1').describe('Following count, as shown'),
followersStart: z
.number()
.default(7300)
.describe('Follower count the climb starts from'),
followersEnd: z
.number()
.default(238000)
.describe('Follower count the climb lands on'),
postImages: z
.array(z.string())
.default([])
.describe(
'Up to 6 image urls for the post grid. The first 4 also fill the highlight circles. Empty slots show color tiles.'
),
backgroundColor: z
.string()
.default('#FAFAFC')
.describe('$style:color Background color'),
ringColor: z
.string()
.default('#D300C5')
.describe('$style:color Story ring around the photo'),
postsHighlightColor: z
.string()
.default('#F5B83D')
.describe('$style:color Box drawn around the posts count'),
followersHighlightColor: z
.string()
.default('#6B55F6')
.describe('$style:color Box drawn around the follower count'),
});
Profile Follower Climb
profile_follower_climbMoment (hook). A phone shows a social profile while the follower count ticks up in seven steps, pops on the last number, then the camera pushes in on the stats and circles the followers. Wire a photo into the IMAGE port; set the start and end follower counts.
Workflow Inputs (1)
- Profile photo. Empty shows a colored initial.
avatarIMAGE
Config Fields (13)
postshandlebioLine1bioLine2followingringColorpostImagesdisplayNamefollowersEndfollowersStartbackgroundColorpostsHighlightColorfollowersHighlightColor
Meta
- Updated
- 10/15/2026
Start here
Ask Claude for your next ad.
Connect once. Ask any time.
- No credit card
- You keep the rights to what you make
- Cancel anytime