Fluted Glass
Fluted glass refracts a gradient orb and its headline, then slides away to bring them into focus. A free, MIT-licensed Remotion graphic look.
$ pnpm dlx shadcn@latest add @remocn/fluted-glassUsage
// src/Root.tsx
import { Composition } from "remotion";
import { FlutedGlass } from "@/components/remocn/fluted-glass";
const FlutedGlassScene = () => <FlutedGlass title="In focus." />;
export const RemotionRoot = () => (
<Composition
id="FlutedGlass"
component={FlutedGlassScene}
durationInFrames={290}
fps={60}
width={1280}
height={720}
/>
);A sheet of vertical glass flutes covers the frame, refracting an orb and the title into stretched slivers while the backdrop drifts. The sheet then slides off to the right, leaving the sharp orb and headline. Pass a short title. Ships dark and light via theme.
Props12
| Prop | Type | Default |
|---|---|---|
| title | string"In focus." Headline shown beside the orb. | |
| fluteWidth | number26 Width of one flute of the glass, in pixels at 720p. | |
| sweep | number46 Frames the glass takes to slide across the frame. | |
| accent | string"#3B5BFD" Color tint on the orb rim. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Fraunces" Typeface for the title. 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Color scheme. Ships dark and light. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- titlestring
Headline shown beside the orb.
Default
"In focus." - fluteWidthnumber
Width of one flute of the glass, in pixels at 720p.
Default
26 - sweepnumber
Frames the glass takes to slide across the frame.
Default
46 - accentstring
Color tint on the orb rim.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the title. Load the font in your project first.
Default
"Fraunces" - 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 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Color scheme. Ships dark and light.
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1