Card Swipe Cover
A tilted card swipes across the frame and covers the headline, revealing a grid of launch kit cards. A free, MIT-licensed Remotion transition.
$ pnpm dlx shadcn@latest add @remocn/card-swipe-coverUsage
// src/Root.tsx
import { Composition } from "remotion";
import { CardSwipeCoverDemo } from "@/components/remocn/card-swipe-cover";
const CardSwipeCoverDemoScene = () => (
<CardSwipeCoverDemo
line="Every launch asset, *in one place.*"
title="Launch kits"
subtitle="Four films, ready to render."
/>
);
export const RemotionRoot = () => (
<Composition
id="CardSwipeCoverDemo"
component={CardSwipeCoverDemoScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);Scene A types a headline; the text between asterisks is set in the accent style. A card then swipes in from the bottom corner and covers the frame, and scene B shows a title, a subtitle, filter tabs and a grid of cover cards. Pass line, title, subtitle and your own covers; 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.
Props21
| Prop | Type | Default |
|---|---|---|
| theme | "dark" | "light""dark" Light or dark palette for both scenes | |
| accent | string— Accent color; defaults to the theme accent | |
| line | string"Every launch asset, *in one place.*" Scene A headline; wrap words in asterisks for the accent style | |
| title | string"Launch kits" Heading of the card grid in scene B | |
| subtitle | string"Four films, ready to render." Supporting line under the grid heading | |
| tabs | string[]["All", "Videos", "Stills", "Captions"] Filter tabs above the card grid in scene B. | |
| ctaLabel | string"New kit" Label of the pill next to the grid heading. | |
| covers | CoverItem[]DEFAULT_COVERS Cards for the scene B grid; defaults use images only in the Remocn repo | |
| 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 | |
| fontFamily | string"Figtree" 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. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| transition | CardSwipeCoverProps— Overrides for the transition presentation props | |
| stagger | number3 Frames between cards as the grid lands. | |
| 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. | |
- theme"dark" | "light"
Light or dark palette for both scenes
Default
"dark" - accentstring
Accent color; defaults to the theme accent
- linestring
Scene A headline; wrap words in asterisks for the accent style
Default
"Every launch asset, *in one place.*" - titlestring
Heading of the card grid in scene B
Default
"Launch kits" - subtitlestring
Supporting line under the grid heading
Default
"Four films, ready to render." - tabsstring[]
Filter tabs above the card grid in scene B.
Default
["All", "Videos", "Stills", "Captions"] - ctaLabelstring
Label of the pill next to the grid heading.
Default
"New kit" - coversCoverItem[]
Cards for the scene B grid; defaults use images only in the Remocn repo
Default
DEFAULT_COVERS - 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
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Figtree" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Solid fill in place of the gradient ground; pass "transparent" to drop it.
- logoReact.ReactNode
Replaces the remocn mark.
- transitionCardSwipeCoverProps
Overrides for the transition presentation props
- staggernumber
Frames between cards as the grid lands.
Default
3 - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback speed multiplier for the whole timeline.
Default
1