Glyph Block Decode

Blocky glyphs flicker and decode into a product name, then its URL decodes and is underlined. A free, MIT-licensed Remotion logo animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/glyph-block-decode

Usage

tsx
// 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

PropTypeDefault
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.

blockColors
string[]—

Flat colours used for the non-photo blocks.

accent
string—

Accent colour for the mark and highlights; 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.

    DefaultDEFAULT_IMAGES

  • blockColorsstring[]

    Flat colours used for the non-photo blocks.

  • accentstring

    Accent colour for the mark and highlights; 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.

    Default400

  • underlineboolean

    The last URL block stretches into an underline.

    Defaulttrue

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • 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.

    Default1

  • seednumber

    Number that changes the random block layout.

    Default7