Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

3.6 KB
Raw Blame
---
title: Glyph Block Decode
description: "Blocky glyphs flicker and decode into a product name, then its URL decodes and is underlined."
component: glyph-block-decode
vibe: premium
length: 102
useWhen:
  - "A name reveal for a studio or product with a URL the viewer should remember."
  - "A tech-forward intro where text decodes out of colourful blocks and photos."
  - "A title card that must end on a clean underlined URL."
avoidWhen:
  - "You want plain letters spelling out with no glitch — use `spell-out`."
  - "The reveal should be the actual logo, not typed text — use `title-converge`."
  - "You need many words cutting in at a fast rhythm — use `blink-cut`."
askedAs:
  - "blocky characters decode name"
  - "url decoding underline"
  - "I want blocky glyphs flickering into the product name"
  - "name reveal with a URL people should remember"
  - "tech-forward intro with decoded text"
  - "viewer sees the name and web address decode on screen"
---

<ComponentPreview name="glyph-block-decode" />

<InstallBlock name="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={138}
    fps={30}
    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.

<PropsTable title="Props"
  rows={[
    {
      name: "name",
      type: "string",
      default: "\"Remocn Studio\"",
      description: "Main text that decodes out of the blocks.",
    },
    {
      name: "url",
      type: "string",
      default: "\"remocn.dev/studio\"",
      description: "Second line that decodes after the name and is underlined.",
    },
    {
      name: "images",
      type: "string[]",
      default: "DEFAULT_IMAGES",
      description: "Photos shown inside the blocks; URLs or staticFile paths.",
    },
    {
      name: "blockColors",
      type: "string[]",
      description: "Flat colours used for the non-photo blocks.",
    },
    {
      name: "accent",
      type: "string",
      description: "Accent colour for the mark and highlights; any CSS colour.",
    },
    {
      name: "ink",
      type: "string",
      description: "Colour of the decoded text.",
    },
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Dark or light palette and ground.",
    },
    {
      name: "ground",
      type: "GshPresetId",
      description: "Shader preset id for the gradients.sh background ground.",
    },
    {
      name: "groundParams",
      type: "Partial<GradientParams>",
      description: "Custom shader parameters for the ground, used instead of the theme default.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Playback multiplier for the whole timeline; 1 is normal speed.",
    },
    {
      name: "seed",
      type: "number",
      default: "7",
      description: "Number that changes the random block layout.",
    },
  ]}
/>