Glyph Block Decode
Logo sting for Remotion: chunky blocks of photos and flat colour fly in over the name, peel away and leave blocky glitch characters that flicker and resolve into your product name, then the website URL decodes too and gets underlined. A studio or product reveal.
To make chunky glyphs flicker and decode into the product name, then have the website URL decode too and get underlined, use Glyph Block Decode. Blocky tiles, some filled with photos, some with flat colour and some with small UI icons, fly in over the letters of the name, then peel away one by one; under each tile the characters flicker through random glitch glyphs in the accent colour and resolve into your name. The URL below does the same, and its last tile stretches into an accent underline. Use it for a studio, agency or product name reveal that ends on a web address.
$ pnpm dlx shadcn@latest add @remocn/glyph-block-decodeHow to build this in Remotion
You don't need to hand-build a text-scramble or typewriter with random() and interpolate(), or measure every letter with @remotion/layout-utils to place blocks over it. Install the component and pass your name and URL:
npx shadcn@latest add @remocn/glyph-block-decodeIt measures the name and URL in the loaded font, splits each line into runs of one to three letters (two to four for the URL) and gives each run a tile, sized and placed by seed, plus a few small satellite tiles around the name. The schedule in timeline.ts (30 fps frames) has the name tiles spring in from just before frame 0 and peel off between frames 18 and 60; the URL tiles fly in from frame 36 and peel off between frames 54 and 78. When a tile leaves, its letters show 3 to 5 frames of random glyphs from a fixed set (letters, digits and #%&/) in the accent colour, then settle into the real characters. The last URL tile is a flat accent-coloured block; at frame 84 it stretches over 18 frames into the underline under the whole URL, and the letters under it decode 3 frames later. A slow 4% camera push runs over the whole composition.
Good to know
- Length: 102 frames of motion at 30 fps (204 at 60 fps) with the default props, ending when the underline finishes at frame 102. The demo composition runs 138 frames at 30 fps to hold on the final card, which is the 276 in the Usage example: that example is a 60 fps composition, so the numbers it hands to Remotion (
durationInFrames,Sequencelengths) are doubled. Give theSequenceat least 102 frames at 30 fps (204 at 60 fps) and add your hold on top. The component's own props counted in frames (delay) stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersgsh,glide,frame-rate,timeline.gshis the animated gradient ground, drawn with WebGL2 on a canvas behind the text for the whole scene; passbackgroundwith a CSS colour for a solid fill or"transparent"to drop it. The shadcn CLI copies the source into your project. - Font: loads Geist (300 and 400) itself through
@remotion/google-fonts.fontFamilysets the face for the name and URL andfontWeightthe weight of the name; the URL is always weight 300. Load your font in your project; the component waits for it before measuring. imagesis optional in the type, but pass it. Left out, or passed as an empty array, it falls back to the default photos, which are paths into the Remocn repo'spublic/folder that your project does not have. Paths withouthttp,data:or/go throughstaticFile(), soimages={["photo-1.jpg", "photo-2.jpg"]}reads from yourpublic/.- Flat colour only: there is no prop for that. Each tile over the letters is picked at random as photo (about 58%), flat colour (about 24%) or UI icon chip (about 18%), and the smaller tiles around them mix the same three kinds, so photos always appear. For colour-only blocks, edit the
kindpick in the copied file;blockColorssets the colours those flat tiles use (by default the accent plus the theme colours). accentcolours the flickering glyphs, the underline and the first default block colour.seedreshuffles the tile layout,underline={false}keeps the last URL tile peeling off like the others.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { GlyphBlockDecode } from "@/components/remocn/glyph-block-decode";
const GlyphBlockDecodeScene = () => (
<GlyphBlockDecode
name="Remocn Studio"
url="remocn.dev/studio"
images={["https://example.com/a.jpg", "https://example.com/b.jpg"]}
/>
);
export const RemotionRoot = () => (
<Composition
id="GlyphBlockDecode"
component={GlyphBlockDecodeScene}
durationInFrames={276}
fps={60}
width={1280}
height={720}
/>
);Blocky fragments, some filled with photos or flat colour, scramble and decode into name; the url decodes after it and a rule draws underneath. Pass name, url and, to use your own pictures, images (the default photos only exist in the Remocn repo). Ships light and dark.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props17
| Prop | Type | Default |
|---|---|---|
| name | string"Remocn Studio" Main text that decodes out of the blocks. | |
| url | string"remocn.dev/studio" Second line that decodes after the name and is underlined. | |
| images | string[]DEFAULT_IMAGES Photos shown inside the blocks; URLs or staticFile paths. An empty list falls back to the defaults. | |
| blockColors | string[]— Flat colours used for the non-photo blocks. | |
| accent | string— Colour of the flickering glyphs and the underline, and the first default block colour; any CSS colour. | |
| ink | string— Colour of the decoded text. | |
| background | string— Solid fill in place of the gradient ground; pass "transparent" to drop it. | |
| fontFamily | string"Geist" Typeface for the name and URL. Load the font in your project first. | |
| fontWeight | number400 Weight of the name. | |
| underline | booleantrue The last URL block stretches into an underline. | |
| 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. | |
| theme | "dark" | "light""dark" Dark or light palette and ground. | |
| ground | GshPresetId— Shader preset id for the gradients.sh background ground. | |
| groundParams | Partial<GradientParams>— Custom shader parameters for the ground, used instead of the theme default. | |
| speed | number1 Playback multiplier for the whole timeline; 1 is normal speed. | |
| seed | number7 Number that changes the random block layout. | |
- namestring
Main text that decodes out of the blocks.
Default
"Remocn Studio" - urlstring
Second line that decodes after the name and is underlined.
Default
"remocn.dev/studio" - imagesstring[]
Photos shown inside the blocks; URLs or staticFile paths. An empty list falls back to the defaults.
Default
DEFAULT_IMAGES - blockColorsstring[]
Flat colours used for the non-photo blocks.
- accentstring
Colour of the flickering glyphs and the underline, and the first default block colour; any CSS colour.
- inkstring
Colour of the decoded text.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- fontFamilystring
Typeface for the name and URL. Load the font in your project first.
Default
"Geist" - fontWeightnumber
Weight of the name.
Default
400 - underlineboolean
The last URL block stretches into an underline.
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 - theme"dark" | "light"
Dark or light palette and ground.
Default
"dark" - groundGshPresetId
Shader preset id for the gradients.sh background ground.
- groundParamsPartial<GradientParams>
Custom shader parameters for the ground, used instead of the theme default.
- speednumber
Playback multiplier for the whole timeline; 1 is normal speed.
Default
1 - seednumber
Number that changes the random block layout.
Default
7
Common questions
For a studio reveal, how do I make chunky glyphs flicker and decode into the product name, then the website URL decodes and gets underlined?
Install Glyph Block Decode with npx shadcn@latest add @remocn/glyph-block-decode and render <GlyphBlockDecode name="Acme Studio" url="acme.studio" images={[...]} />. Budget at least 102 frames at 30 fps (204 at 60 fps).
Can I use flat colour blocks only, without photos?
Not with props: leaving out images falls back to the default photos. Pass your own images, or change the tile kind pick in the copied file so every tile is flat colour, and set the colours with blockColors.
How long is the animation?
The motion ends at 102 frames at 30 fps (204 at 60 fps) when the underline finishes. The demo runs 138 frames at 30 fps (276 at 60 fps), which includes a hold on the final name and URL.
Can I turn off the underline?
Yes, underline={false}. The last URL tile then peels off like the others.
Related effects
- Matrix Decode: a random scramble resolves left to right into the text.
- RGB Glitch Text: three colour-offset copies of the text jitter in a chromatic glitch.
- Spell Out: letters drop in one at a time and close into the word with a line beneath.
- Glyph Matrix: a dot matrix counts down and forms the mark as the name types in.