Query Cascade

Search queries rush past in a blur until one lands in the search box and resolves into an answer. A free, MIT-licensed Remotion UI block.

Installation
$ pnpm dlx shadcn@latest add @remocn/query-cascade

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { QueryCascade } from "@/components/remocn/query-cascade";
 
const QueryCascadeScene = () => (
  <QueryCascade
    hero="how to make a launch video"
    term="launch video"
    answerBefore="Your"
    answerAfter="is ready."
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="QueryCascade"
    component={QueryCascadeScene}
    durationInFrames={340}
    fps={60}
    width={1280}
    height={720}
  />
);

A long list of queries scrolls past with motion blur and decelerates until the hero query sits in a search box. The term inside it is highlighted, the box clears, and the line resolves into answerBefore, the term and answerAfter. Pass your own hero, term and answer words; it ships light and dark through theme.

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
queries
string[]QUERIES

Search queries that scroll past. The hero is inserted among them.

hero
string"how to make a launch video"

The query that lands in the search box.

term
string"launch video"

Phrase inside the hero that is highlighted and kept for the answer.

answerBefore
string"Your"

Answer text before the term.

answerAfter
string"is ready."

Answer text after the term.

showLogo
booleantrue

Show the built-in wordmark at the end.

logo
React.ReactNode—

Replaces the remocn mark.

motionBlur
number1

Strength of the motion smear while the list scrolls; 0 turns it off.

fontFamily
string"Schibsted Grotesk"

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

ink
string—

Text color; overrides the theme ink.

background
string—

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

theme
"dark" | "light""dark"

Color scheme. Ships light and dark.

ground
GshPresetId—

Shader preset id for the animated background.

groundParams
Partial<GradientParams>—

Partial shader parameters that override the ground preset.

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.

accent
string—

Highlight color of the term and its underline; overrides the theme.

  • queriesstring[]

    Search queries that scroll past. The hero is inserted among them.

    DefaultQUERIES

  • herostring

    The query that lands in the search box.

    Default"how to make a launch video"

  • termstring

    Phrase inside the hero that is highlighted and kept for the answer.

    Default"launch video"

  • answerBeforestring

    Answer text before the term.

    Default"Your"

  • answerAfterstring

    Answer text after the term.

    Default"is ready."

  • showLogoboolean

    Show the built-in wordmark at the end.

    Defaulttrue

  • logoReact.ReactNode

    Replaces the remocn mark.

  • motionBlurnumber

    Strength of the motion smear while the list scrolls; 0 turns it off.

    Default1

  • fontFamilystring

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

    Default"Schibsted Grotesk"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

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

  • theme"dark" | "light"

    Color scheme. Ships light and dark.

    Default"dark"

  • groundGshPresetId

    Shader preset id for the animated background.

  • groundParamsPartial<GradientParams>

    Partial shader parameters that override the ground preset.

  • 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

  • accentstring

    Highlight color of the term and its underline; overrides the theme.