Moire Reveal

A large figure resolves out of a rotating moire line pattern and locks sharp, with a small pill caption. A free, MIT-licensed Remotion number animation.

In Remotion, Moire Reveal resolves a large figure such as 10x out of a rotating moire line pattern: a field of fine lines turns until it locks into the sharp figure, then a small pill caption fades in.

Installation
$ pnpm dlx shadcn@latest add @remocn/moire-reveal

How to reveal a number out of a moire line pattern in Remotion

A large figure resolving out of rotating moire lines and locking sharp, with a pill caption, is one component. You don't need to stack repeating-linear-gradient layers, rotate them with interpolate() and mask them to text with mix-blend-mode. Install it and pass the figure:

bash
npx shadcn@latest add @remocn/moire-reveal
  • value is the text that resolves, for example "10×"; caption is the pill under it. Set shape to mark to reveal the Remocn mark instead of text.
  • Timing at 30 fps with default props: the line grid turns for frames 0–86, the figure locks in over frames 100–114, and the caption rises over frames 110–130. The timing prop moves these three elements (turn, lock, caption) one by one.
  • lineSpacing and angle tune the pattern.

If the number should count up instead, use Tall Count.

Good to know

  • Length: 130 frames of motion at 30 fps (260 at 60 fps) with the default props. That is the minimum for its Sequence; add your own hold on top. The Usage example below is a 60 fps composition with a hold, so its durationInFrames (300) is longer than twice the motion. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project; nothing else is needed at runtime.
  • Font: loads Geist itself through @remotion/google-fonts, so the default needs no setup. Pass fontFamily to use your own face, and load that font in your project.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MoireReveal } from "@/components/remocn/moire-reveal";
 
const MoireRevealScene = () => (
  <MoireReveal value="10×" caption="faster first frame on remocn render" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="MoireReveal"
    component={MoireRevealScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

A field of fine lines turns and drifts until it locks into the figure, then a small pill caption fades in beneath. Pass value and caption, or set shape to mark to reveal the Remocn mark instead of text; it ships light and dark through theme.

Props14

PropTypeDefault
value
string"10×"

Figure that the line pattern resolves into.

shape
"text" | "mark""text"

Reveal the value as text or as the Remocn mark.

caption
string"faster first frame on remocn render"

Small pill caption that fades in under the figure.

accent
string"#3B5BFD"

Accent color for highlights and small marks.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Geist"

Typeface for the copy. The default loads itself; load any other font in your project first.

lineSpacing
number7

Distance between the lines, in pixels at 720p; tighter lines give a finer moire.

angle
number11

Degrees the inner grid starts turned before it swings into line.

grain
booleantrue

Film grain over the scene.

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"

Color theme, "dark" or "light".

speed
number1

Playback speed multiplier for the whole timeline.

  • valuestring

    Figure that the line pattern resolves into.

    Default"10×"

  • shape"text" | "mark"

    Reveal the value as text or as the Remocn mark.

    Default"text"

  • captionstring

    Small pill caption that fades in under the figure.

    Default"faster first frame on remocn render"

  • accentstring

    Accent color for highlights and small marks.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. The default loads itself; load any other font in your project first.

    Default"Geist"

  • lineSpacingnumber

    Distance between the lines, in pixels at 720p; tighter lines give a finer moire.

    Default7

  • anglenumber

    Degrees the inner grid starts turned before it swings into line.

    Default11

  • grainboolean

    Film grain over the scene.

    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"

    Color theme, "dark" or "light".

    Default"dark"

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1