Hot Slab Morph

A glowing blue slab morphs from a template panel into a prompt input card. A free, MIT-licensed Remotion transition.

Installation
$ pnpm dlx shadcn@latest add @remocn/hot-slab-morph

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { HotSlabMorphDemo } from "@/components/remocn/hot-slab-morph";
 
const HotSlabMorphDemoScene = () => (
  <HotSlabMorphDemo
    lineA="Start from a template"
    lineB="or just describe it"
    prompt="A 30-second launch film for our new editor"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="HotSlabMorphDemo"
    component={HotSlabMorphDemoScene}
    durationInFrames={252}
    fps={60}
    width={1280}
    height={720}
  />
);

Scene A is a headline above a panel of template rows. The panel lights up as a hot slab, morphs with a haze into the position of the input card, and settles into scene B, a prompt box that types your request with a second headline above it. Pass lineA, lineB and prompt for the copy; it 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.

Props18

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

Light or dark palette for both scenes

accent
string—

Accent color; defaults to the theme accent

ink
string—

Text color of both scenes; overrides the theme ink.

background
string—

Solid fill in place of both gradient grounds; pass "transparent" to drop it.

fontFamily
string"Hanken Grotesk"

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

lineA
string"Start from a template"

Headline above the template panel in scene A

lineB
string"or just describe it"

Headline above the prompt card in scene B

prompt
string"A 30-second launch film for our new editor"

Text typed into the prompt card

placeholder
string"Describe your launch film"

Prompt box text before typing starts

searchLabel
string"Search templates"

Search field label at the top of the template panel

ground
GshPresetId—

Preset id for the scene A gradients.sh shader ground

groundParams
Partial<GradientParams>—

Overrides for the scene A shader parameters

groundB
GshPresetId—

Preset id for the scene B gradients.sh shader ground

groundParamsB
Partial<GradientParams>—

Overrides for the scene B shader parameters

transition
HotSlabMorphProps—

Overrides for the transition presentation props

scale
number1

Size of both scenes' heading and panels around the frame's center; the grounds stay put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback speed multiplier for the whole timeline.

  • theme"dark" | "light"

    Light or dark palette for both scenes

    Default"dark"

  • accentstring

    Accent color; defaults to the theme accent

  • inkstring

    Text color of both scenes; overrides the theme ink.

  • backgroundstring

    Solid fill in place of both gradient grounds; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Hanken Grotesk"

  • lineAstring

    Headline above the template panel in scene A

    Default"Start from a template"

  • lineBstring

    Headline above the prompt card in scene B

    Default"or just describe it"

  • promptstring

    Text typed into the prompt card

    Default"A 30-second launch film for our new editor"

  • placeholderstring

    Prompt box text before typing starts

    Default"Describe your launch film"

  • searchLabelstring

    Search field label at the top of the template panel

    Default"Search templates"

  • groundGshPresetId

    Preset id for the scene A gradients.sh shader ground

  • groundParamsPartial<GradientParams>

    Overrides for the scene A shader parameters

  • groundBGshPresetId

    Preset id for the scene B gradients.sh shader ground

  • groundParamsBPartial<GradientParams>

    Overrides for the scene B shader parameters

  • transitionHotSlabMorphProps

    Overrides for the transition presentation props

  • scalenumber

    Size of both scenes' heading and panels around the frame's center; the grounds stay put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1