Bounce Logo
Logo sting for Remotion: your wordmark bounces around the frame like the old DVD screensaver, switching color on every edge hit, until it hits the corner dead on, light blooms out of it and the logo settles in the center with a tagline. A playful ending for casual product or community videos.
To make a wordmark bounce around the frame like the old DVD screensaver in Remotion, then hit a corner and settle as the final logo, use Bounce Logo. The wordmark glides at a constant speed and bounces off the frame edges, switching between ink and accent color on every hit, until it hits the bottom-right corner dead on. Light blooms out of that corner, the wordmark glides to the center and grows into the lockup, and a one-line tagline rises under it. Use it as a tongue-in-cheek ending for a casual product or community video.
$ pnpm dlx shadcn@latest add @remocn/bounce-logoHow to build this in Remotion
You don't need to hand-write bounce physics, reflect a velocity on every edge or trace a path with @remotion/paths, and you don't need to guess a start point that happens to hit the corner. Install the component and pass your brand:
npx shadcn@latest add @remocn/bounce-logoThe path is solved backwards. Each axis is a triangle wave that ends at 1, the bottom-right corner, at frame cornerAt (112 by default): the wordmark crosses the frame's width every 48.6 frames and its height every 47.13 frames, so the two axes drift apart slowly and only meet in a corner at the end. With the default cornerAt there are two near misses on the way, around frames 15 and 64. The number of edge hits so far decides the color when flip is on. At the hit, a beam of light blooms out of the corner and stays as the background; 4 frames later the wordmark glides to the center over 22 frames and grows into the lockup, and the line rises in over 16 frames, 22 frames after the hit. The schedule lives in timeline.ts, so moving cornerAt moves everything after it.
Good to know
- Length: 150 frames of motion at 30 fps (300 at 60 fps) with the default props: the corner hit at frame 112, the lockup from 116 to 138, the line from 134 to 150. That is the minimum for its
Sequence; the lockup holds after it. In general it iscornerAtplus 38 frames. The Usage example below is a 60 fps composition withdurationInFrames={336}: that is 168 frames at 30 fps, the 150 frames of motion plus an 18-frame hold on the final lockup, doubled. Numbers handed to Remotion (durationInFrames,Sequencelengths) are doubled at 60 fps, whilecornerAtanddelaystay in 30 fps frames at any frame rate, see Frame rate. - Frame size: the path is not tied to 1280×720. The wordmark travels across the composition's own width and height minus its size, so it stays inside the frame and lands in the corner at any size, vertical and square included. The bounce timing is in frames, not pixels: the hits happen on the same frames at any size, so on a wider frame the wordmark moves faster. The wordmark's height while bouncing is 6.8% of the frame height. On the lockup it scales up to 2.3 times, capped so it is no wider than 52% of the frame; in a narrow vertical frame that cap can make the lockup smaller than the bouncing wordmark.
- Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Manrope (500, 600) for the wordmark and Instrument Serif italic for the line itself through
@remotion/google-fonts.fontFamilychanges only the line; load that font in your project. The wordmark stays in Manrope because the bounce box is measured from Manrope's letter widths. - Logo:
brand="remocn"draws the real remocn logo, any otherbrandis set as a Manrope wordmark. Passlogoto bounce your own mark instead of the text: it is centered in a wide box the size of the remocn logo (about 5 to 1) and takes the flipping color throughcurrentColor, so an inline SVG withfill="currentColor"flips with it and an image keeps its own colors:logo={<Img src={staticFile("logo.svg")} style={{ height: "100%" }} />}. - Rebranding:
accentis the color the wordmark flips to,inkandbackgroundoverride the theme colors,fontFamilysets the line. The corner bloom gradients (a blue beam on dark, blue, pink and violet on light) and the theme colors (THEMES) are constants in the copied file; edit them there. speedabove 1 shortens everything;cornerAtsets how long the bounce runs (40 to 140 frames in the customizer).
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { BounceLogo } from "@/components/remocn/bounce-logo";
const BounceLogoScene = () => (
<BounceLogo
brand="remocn"
line="Hit the corner."
accent="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="BounceLogo"
component={BounceLogoScene}
durationInFrames={336}
fps={60}
width={1280}
height={720}
/>
);The wordmark bounces off the frame edges on a path solved backwards so the final hit always lands in a corner, where it blooms, glides to the centre as the lockup and line rises beneath. Pass brand and line. Ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| brand | string"remocn" Wordmark that bounces; Remocn renders the real logo. | |
| line | string"Hit the corner." Line under the final lockup; empty hides it. | |
| accent | string"#3B5BFD" Accent colour for the mark and highlights; any CSS colour. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Instrument Serif" Typeface for the line. Load the font in your project first. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| cornerAt | number112 Frame of the dead-on corner hit; the bounce path is solved back from it. | |
| flip | booleantrue Flip the wordmark between ink and accent on every edge hit. | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Dark or light palette and ground. | |
| speed | number1 Playback multiplier for the whole timeline; 1 is normal speed. | |
- brandstring
Wordmark that bounces; Remocn renders the real logo.
Default
"remocn" - linestring
Line under the final lockup; empty hides it.
Default
"Hit the corner." - accentstring
Accent colour for the mark and highlights; any CSS colour.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the line. Load the font in your project first.
Default
"Instrument Serif" - logoReact.ReactNode
Replaces the remocn mark.
- cornerAtnumber
Frame of the dead-on corner hit; the bounce path is solved back from it.
Default
112 - flipboolean
Flip the wordmark between ink and accent on every edge hit.
Default
true - 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 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Dark or light palette and ground.
Default
"dark" - speednumber
Playback multiplier for the whole timeline; 1 is normal speed.
Default
1
Common questions
Can I make a wordmark bounce around the frame like the old DVD screensaver, then hit a corner and settle as the final logo?
Yes: install Bounce Logo with npx shadcn@latest add @remocn/bounce-logo and render <BounceLogo brand="Acme" line="Hit the corner." />. The wordmark always hits the bottom-right corner at frame cornerAt, then glides to the center as the lockup; give its Sequence at least 150 frames at 30 fps (300 at 60 fps).
Will the logo really land in the corner every time?
Yes. The path is computed backwards from the corner hit, so whatever cornerAt, frame size or brand length you pass, the last hit lands dead on the bottom-right corner.
Does it work in a vertical 1080×1920 video?
Yes. The bounce uses the composition's own width and height and the wordmark is sized from the frame height, so it bounces off the real edges and lands in the corner at any aspect ratio. The lockup is capped at 52% of the frame width, so in a tall frame it ends smaller.
Can the logo stay in the corner instead of moving to the center?
Not with a prop: after the hit it always glides to the center for the lockup. To keep it in the corner, edit the lockup target (endX, endY) in the copied file.
Related effects
- Snap Click: the two halves of the logo slam together with a click, a short sting.
- Inflate: a flat sliver puffs up like a balloon toy into a glossy mark.
- Play of the Game: a banner slices in, the logo slams in, then a stat plate flashes.
- First Light: a band of light lights the wordmark for a calm, premium reveal.