Tile Snake Loader

Media tiles snake across a loader and settle into a studio landing page with a hero video card. A free, MIT-licensed Remotion product scene.

Installation
$ pnpm dlx shadcn@latest add @remocn/tile-snake-loader

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { TileSnakeLoader } from "@/components/remocn/tile-snake-loader";
 
const TileSnakeLoaderScene = () => (
  <TileSnakeLoader
    name="Lumen Studio"
    url="lumen.studio"
    headline={"Launch films,\ncut in minutes."}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="TileSnakeLoader"
    component={TileSnakeLoaderScene}
    durationInFrames={356}
    fps={60}
    width={1280}
    height={720}
  />
);

A product name builds letter by letter on a loader while media tiles snake across and a percentage fills. The tiles retract, a skeleton grows, and the window settles into a landing page with a headline, sub line and a hero video card. Pass name, product, headline (use a newline for a line break), sub and url. The default images are files that only exist in the Remocn repo, so pass your own image URLs. Ships dark by default and light.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props20

PropTypeDefault
theme
"dark" | "light""dark"

Light or dark palette

accent
string"#3B5BFD"

Accent color for highlights, buttons and progress

ink
string—

Text color; overrides the theme ink.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

name
string"Lumen Studio"

Name typed out on the loader

label
string"Initializing"

Small loader label, e.g. 'Initializing'

images
string[]DEFAULT_IMAGES

Image URLs for the tiles; defaults exist only in the Remocn repo

product
string"Lumen Studio"

Product name on the landing page

url
string"lumen.studio"

Address shown in the landing page chrome

headline
string"Launch films,\ncut in minutes."

Landing headline; use a newline for a line break

sub
string"Drop your screens in. Ship the film by Friday."

Sub line under the headline

ctaLabel
string"Start a film"

Primary button under the headline in the revealed window.

secondaryLabel
string"See examples"

Secondary button next to it.

publishLabel
string"Publish"

Button in the window's top bar.

fontFamily
string"Instrument Sans"

Typeface for the copy. Load the font in your project first.

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.

speed
number1

Playback speed multiplier for the whole timeline.

ground
GshPresetId—

gradients.sh preset id for the backdrop shader

groundParams
Partial<GradientParams>—

Overrides for the backdrop shader parameters

  • theme"dark" | "light"

    Light or dark palette

    Default"dark"

  • accentstring

    Accent color for highlights, buttons and progress

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • namestring

    Name typed out on the loader

    Default"Lumen Studio"

  • labelstring

    Small loader label, e.g. 'Initializing'

    Default"Initializing"

  • imagesstring[]

    Image URLs for the tiles; defaults exist only in the Remocn repo

    DefaultDEFAULT_IMAGES

  • productstring

    Product name on the landing page

    Default"Lumen Studio"

  • urlstring

    Address shown in the landing page chrome

    Default"lumen.studio"

  • headlinestring

    Landing headline; use a newline for a line break

    Default"Launch films,\ncut in minutes."

  • substring

    Sub line under the headline

    Default"Drop your screens in. Ship the film by Friday."

  • ctaLabelstring

    Primary button under the headline in the revealed window.

    Default"Start a film"

  • secondaryLabelstring

    Secondary button next to it.

    Default"See examples"

  • publishLabelstring

    Button in the window's top bar.

    Default"Publish"

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Instrument Sans"

  • 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

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • groundGshPresetId

    gradients.sh preset id for the backdrop shader

  • groundParamsPartial<GradientParams>

    Overrides for the backdrop shader parameters