← Catalog
No preview yet
Source
347 lines// Link Click CTA: a MOMENT (cta).
//
// A link pill pops in, a cursor glides up and clicks it (the pill squishes
// and a ring ripples out), a browser window rises with the page, the camera
// eases back to show all of it, and a tilted sticker stamps on last.
//
// 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.
import { loadFont } from '@remotion/google-fonts/InterTight';
import {
AbsoluteFill,
Easing,
Img,
interpolate,
useCurrentFrame,
useVideoConfig,
} from 'remotion';
const { fontFamily: INTER_TIGHT } = loadFont('normal', {
weights: ['700', '900'],
subsets: ['latin'],
});
export type LinkClickCtaProps = {
linkText: string;
browserUrl: string;
screenshot: string;
stickerText: string;
accentColor: string;
stickerColor: string;
backgroundColor: string;
textColor: string;
};
/** The beats, in frames at 30 fps. Mirrored in the meta's `moment.beats`. */
export const beats = [
{ label: 'link pops', from: 0, to: 9 },
{ label: 'cursor glides in', from: 0, to: 18 },
{ label: 'click', from: 20, to: 34 },
{ label: 'page rises', from: 26, to: 37 },
{ label: 'camera eases back', from: 26, to: 56 },
{ label: 'sticker stamps', from: 78, to: 88 },
];
const STAGE_W = 1920;
const STAGE_H = 1080;
const BOX_W = 1200;
const BOX_H = 1080;
const PILL_Y = 245;
const PILL_H = 110;
const BROWSER_X = 436;
const BROWSER_Y = 452.5;
const BROWSER_W = 1048;
const BROWSER_H = 655;
const clamp = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
const outCubic = Easing.out(Easing.cubic);
const inOutCubic = Easing.inOut(Easing.cubic);
const outBack = Easing.out(Easing.back(1.7));
// Rough text width for a black-weight face, so the pill and the sticker can
// size to their text without measuring the DOM.
function textWidth(text: string, fontSize: number): number {
return text.length * fontSize * 0.46;
}
export default function LinkClickCta({
linkText = 'yoursite.com',
browserUrl = '',
screenshot = '',
stickerText = 'free trial',
accentColor = '#6B55F6',
stickerColor = '#F5B83D',
backgroundColor = '#FAFAFC',
textColor = '#0e0e13',
}: Partial<LinkClickCtaProps>) {
const frame = useCurrentFrame();
const { fps, width, height } = useVideoConfig();
const t = (frame * 30) / fps;
const fit = Math.min(width / BOX_W, height / BOX_H);
// Camera: hold, then ease down and out so the page fits.
const camY = interpolate(t, [0, 26, 56], [420, 420, 600], {
...clamp,
easing: inOutCubic,
});
const zoom = interpolate(t, [0, 56], [1, 0.92], {
...clamp,
easing: inOutCubic,
});
// Pill: pop in, then squish on the click.
const pillText = `${linkText} ↗`;
const pillW = Math.min(1100, Math.max(360, textWidth(pillText, 52) + 180));
const pillX = (STAGE_W - pillW) / 2;
const pillScale =
t < 20
? interpolate(t, [0, 9], [0.5, 1], { ...clamp, easing: outBack })
: t < 24
? interpolate(t, [20, 24], [1, 0.92], clamp)
: interpolate(t, [24, 30], [0.92, 1], { ...clamp, easing: outBack });
const pillOpacity = interpolate(t, [0, 6], [0, 1], {
...clamp,
easing: outCubic,
});
// Cursor tip lands on the arrow at the end of the link.
const targetX = STAGE_W / 2 + textWidth(pillText, 52) / 2 - 24;
const targetY = 296;
const cursorX = interpolate(t, [0, 18], [targetX + 260, targetX], {
...clamp,
easing: inOutCubic,
});
const cursorY = interpolate(t, [0, 18], [targetY + 260, targetY], {
...clamp,
easing: inOutCubic,
});
const rippleScale = interpolate(t, [20, 34], [0.4, 2.2], {
...clamp,
easing: outCubic,
});
const rippleOpacity = t < 20 ? 0 : interpolate(t, [20, 34], [1, 0], clamp);
// Browser: rise and settle.
const rise = interpolate(t, [26, 37], [120, 0], {
...clamp,
easing: outCubic,
});
const browserScale = interpolate(t, [26, 35], [0.9, 1], {
...clamp,
easing: outBack,
});
const browserOpacity = interpolate(t, [26, 32], [0, 1], {
...clamp,
easing: outCubic,
});
const stickerW = Math.min(
640,
Math.max(200, textWidth(stickerText, 38) + 100)
);
const stickerScale = interpolate(t, [78, 88], [1.6, 1], {
...clamp,
easing: outBack,
});
const stickerOpacity = interpolate(t, [78, 84], [0, 1], {
...clamp,
easing: outCubic,
});
const shownUrl = (browserUrl || linkText).trim();
const hasShot =
typeof screenshot === 'string' && /^https?:\/\//i.test(screenshot.trim());
return (
<AbsoluteFill
style={{ backgroundColor, overflow: 'hidden', fontFamily: INTER_TIGHT }}
>
<div
style={{
position: 'absolute',
left: width / 2,
top: height / 2,
width: STAGE_W,
height: STAGE_H,
transformOrigin: '0 0',
transform: `scale(${fit * zoom}) translate(${
-STAGE_W / 2
}px, ${-camY}px)`,
}}
>
{/* Browser window */}
<div
style={{
position: 'absolute',
left: BROWSER_X,
top: BROWSER_Y + rise,
width: BROWSER_W,
height: BROWSER_H,
borderRadius: 22,
background: '#FFFFFF',
boxShadow: '0 18px 44px rgba(20,16,60,0.16)',
transform: `scale(${browserScale})`,
opacity: browserOpacity,
}}
>
{['#FF5F57', '#FEBC2E', '#28C840'].map((c, i) => (
<div
key={c}
style={{
position: 'absolute',
left: 27 + i * 26,
top: 16,
width: 14,
height: 14,
borderRadius: 7,
background: c,
}}
/>
))}
<div
style={{
position: 'absolute',
left: 274,
top: 6,
width: 500,
height: 34,
borderRadius: 17,
background: '#F1F0F5',
color: '#8b8b99',
fontSize: 20,
fontWeight: 700,
textAlign: 'center',
lineHeight: '34px',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
}}
>
{shownUrl}
</div>
<div
style={{
position: 'absolute',
left: 4,
top: 67,
width: 1040,
height: 584,
borderRadius: 16,
overflow: 'hidden',
background: `linear-gradient(150deg, ${accentColor}22 0%, ${accentColor}55 100%)`,
}}
>
{hasShot ? (
<Img
src={screenshot}
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
/>
) : (
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: textColor,
fontSize: 72,
fontWeight: 900,
letterSpacing: '-0.02em',
}}
>
{shownUrl}
</div>
)}
</div>
</div>
{/* Link pill */}
<div
style={{
position: 'absolute',
left: pillX,
top: PILL_Y,
width: pillW,
height: PILL_H,
borderRadius: PILL_H / 2,
background: accentColor,
boxShadow: `0 16px 36px ${accentColor}59`,
color: '#FFFFFF',
fontSize: 52,
fontWeight: 900,
textAlign: 'center',
lineHeight: `${PILL_H}px`,
whiteSpace: 'nowrap',
transform: `scale(${pillScale})`,
opacity: pillOpacity,
}}
>
{pillText}
</div>
{/* Click ripple */}
<div
style={{
position: 'absolute',
left: targetX + 6,
top: targetY + 6,
width: 60,
height: 60,
borderRadius: 30,
border: `6px solid ${accentColor}`,
boxSizing: 'border-box',
transform: `scale(${rippleScale})`,
opacity: rippleOpacity,
}}
/>
{/* Cursor */}
<svg
width={72}
height={72}
viewBox='0 0 72 72'
style={{ position: 'absolute', left: cursorX, top: cursorY }}
>
<path
d='M 2.0 2.0 L 2.0 58.0 L 16.0 45.0 L 26.0 68.0 L 35.0 64.0 L 25.0 41.0 L 44.0 41.0 Z'
fill='#FFFFFF'
stroke={textColor}
strokeWidth={3.2}
strokeLinejoin='round'
/>
</svg>
{/* Sticker */}
{stickerText ? (
<div
style={{
position: 'absolute',
left: 1500 - stickerW / 2,
top: 400,
width: stickerW,
height: 80,
borderRadius: 40,
background: stickerColor,
color: textColor,
fontSize: 38,
fontWeight: 900,
textAlign: 'center',
lineHeight: '80px',
whiteSpace: 'nowrap',
transform: `rotate(8deg) scale(${stickerScale})`,
opacity: stickerOpacity,
}}
>
{stickerText}
</div>
) : null}
</div>
</AbsoluteFill>
);
}
Schema (Zod)
import { z } from 'zod';
export const Schema = z.object({
screenshot: z
.string()
.default('')
.describe(
'$port:image The page that opens in the browser. Empty shows the link big on a soft color.'
),
linkText: z
.string()
.default('yoursite.com')
.describe('Link on the pill the cursor clicks'),
browserUrl: z
.string()
.default('')
.describe('Address bar text. Empty uses the link.'),
stickerText: z
.string()
.default('free trial')
.describe('Tilted sticker that stamps on last. Empty hides it.'),
accentColor: z
.string()
.default('#6B55F6')
.describe('$style:color Pill and ripple color'),
stickerColor: z
.string()
.default('#F5B83D')
.describe('$style:color Sticker color'),
backgroundColor: z
.string()
.default('#FAFAFC')
.describe('$style:color Background color'),
textColor: z
.string()
.default('#0e0e13')
.describe('$style:color Sticker text and cursor outline'),
});
Link Click CTA
link_click_ctaMoment (cta). A link pill pops in, a cursor glides up and clicks it, a browser window rises with the page, the camera eases back, and a tilted sticker stamps on. Wire the page screenshot into the IMAGE port; set the link and the sticker.
Workflow Inputs (1)
- The page that opens in the browser. Empty shows the link big on a soft color.
screenshotIMAGE
Config Fields (7)
linkTexttextColorbrowserUrlaccentColorstickerTextstickerColorbackgroundColor
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