Flood Sting
A row of icons is picked through, then a flood of colour fills the frame and the logo lands. A free, MIT-licensed Remotion logo animation.
$ pnpm dlx shadcn@latest add @remocn/flood-stingUsage
// src/Root.tsx
import { Composition } from "remotion";
import { FloodSting } from "@/components/remocn/flood-sting";
const FloodStingScene = () => (
<FloodSting
icons={["cluster", "download", "globe", "gear", "brackets"]}
pick={2}
flood="#3B5BFD"
/>
);
export const RemotionRoot = () => (
<Composition
id="FloodSting"
component={FloodStingScene}
durationInFrames={240}
fps={60}
width={1280}
height={720}
/>
);A row of icon tiles plays a selection game: a highlight hops across them and slot-style rolls swap their glyphs until a press picks one. The picked tile floods the frame with colour and the logo lands between two dots. Pass icons from the built-in glyph set (cluster, download, globe, gear, brackets, spark, grid, diamonds), pick and the colours. 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.
Props17
| Prop | Type | Default |
|---|---|---|
| icons | GlyphName[]DEFAULT_ICONS Glyph names for the tiles in the row. | |
| rolls | GlyphName[][]DEFAULT_ROLLS Glyph names each tile cycles through, one list per roll. | |
| pick | number2 Index of the tile that is pressed and floods the frame. | |
| stagger | number2 Frames between tiles as the row pops in. | |
| radius | number0.24 Corner radius of the hopping highlight, as a share of the tile size. | |
| theme | "dark" | "light""dark" Dark or light palette and ground. | |
| paper | string— Background colour of the row stage. | |
| ink | string— Colour of the tiles and glyphs. | |
| flood | string— Colour of the flood that fills the frame. | |
| logoColor | string— Colour of the logo that lands after the flood. | |
| hops | string[]— Colours the highlight takes as it hops between tiles. | |
| logo | React.ReactNode— Replaces the remocn mark. | |
| 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— Shader preset id for the gradients.sh background ground. | |
| groundParams | Partial<GradientParams>— Custom shader parameters for the ground, used instead of the theme default. | |
- iconsGlyphName[]
Glyph names for the tiles in the row.
Default
DEFAULT_ICONS - rollsGlyphName[][]
Glyph names each tile cycles through, one list per roll.
Default
DEFAULT_ROLLS - picknumber
Index of the tile that is pressed and floods the frame.
Default
2 - staggernumber
Frames between tiles as the row pops in.
Default
2 - radiusnumber
Corner radius of the hopping highlight, as a share of the tile size.
Default
0.24 - theme"dark" | "light"
Dark or light palette and ground.
Default
"dark" - paperstring
Background colour of the row stage.
- inkstring
Colour of the tiles and glyphs.
- floodstring
Colour of the flood that fills the frame.
- logoColorstring
Colour of the logo that lands after the flood.
- hopsstring[]
Colours the highlight takes as it hops between tiles.
- logoReact.ReactNode
Replaces the remocn mark.
- 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 - groundGshPresetId
Shader preset id for the gradients.sh background ground.
- groundParamsPartial<GradientParams>
Custom shader parameters for the ground, used instead of the theme default.