Flood Sting
Logo sting for Remotion: a highlight hops across a row of app icons and picks one, then a flood of brand colour bursts out of it, fills the frame and the logo lands. An opener or closer for an integrations teaser.
For a row of tool icons that gets cycled through by a selector, then a flood of brand colour that fills the frame before the logo lands, use Flood Sting. A highlight hops from tile to tile while the glyphs roll like a slot machine, presses the picked tile, and a circle of animated colour grows out of it to cover the frame; the logo then springs in between two dots. Use it for an integrations teaser or a tool-picker opener.
$ pnpm dlx shadcn@latest add @remocn/flood-stingHow to build this in Remotion
You don't need to hand-build it from spring(), interpolate(), @remotion/paths or a @remotion/transitions wipe. Install the component and pass the icons, the pick and your colour:
npx shadcn@latest add @remocn/flood-stingIt is one scene with its schedule in timeline.ts (30 fps frames). The row pops in tile by tile, stagger frames apart; its springs start 12 frames before the scene, so the row is already arriving at frame 0. The selection box and its four corner dots spring in at frame 0. The highlight makes five hops on springs at frames 6, 18, 28, 36 and 42: to the second tile, the fourth, the first, the last, then the picked one, and on the last hop it tints to the flood colour over 4 frames. The glyphs roll to the next set twice, at 22 and 38, each over 8 frames, rippling outwards from the pick one frame per tile. The picked tile is pressed at 48. The flood is a clip-path circle that grows from the picked tile to the whole frame over 54–69, revealing an animated shader; the picked glyph blurs away over 58–65. At 62 the logo springs up into place while the corner dots slide beside it, and the dots shrink away over 96–104. A slow camera push scales everything by 4% over 120 frames.
Good to know
- Length: 104 frames of motion at 30 fps (208 at 60 fps): the flood ends at 69, the logo lands from 62 and the dots finish tucking away at 104. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition with a hold, so itsdurationInFrames={240}is the 120-frame demo at 30 fps doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. To move single beats (a hop, the flood, the logo), passtimingwith the ids fromtimeline.ts, such asfloodorlogo. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersgsh(a WebGL2 animated gradient ground),glide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Manrope 600 through
@remotion/google-fontsfor the default Remocn wordmark only. There is no other text, so there is nofontFamilyprop. - Icons:
iconsandrollstake names from the built-in set of eight glyphs (cluster, download, globe, gear, brackets, spark, grid, diamonds), not your own components. For your own tool icons, add a name toFloodStingGlyphin the copiedtimeline.tsand a 24×24 SVG for it in theGlyphfunction ofindex.tsx, drawn in thecolorit receives: the glyph colour changes as the highlight passes over it. - Fixed structure: the five hops and their tile order, and at most two rolls, are constants in
timeline.tsandindex.tsx;hopssets only the highlight colours.pickis clamped to the row. - Ground: the shader is visible only inside the flood; before it the stage is the flat
papercolour. No prop turns the shader off.theme="light"gives a light paper stage and an orange flood (dark is a blue flood),floodrecolours the shader's base, the highlight's final tint and the dots,groundpicks another gradients.sh preset andgroundParamssets shader parameters directly. For a flat colour fill, replace the<GshGround>element in the copied file with a solid fill. logotakes any React node in place of the Remocn wordmark, centred where it lands:logo={<Img src={staticFile("logo.svg")} style={{ height: 108 }} />}. Size it yourself; the default wordmark is 15% of the frame height (of the width in portrait).
Usage
// 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[]["cluster", "download", "globe", "gear", "brackets"] Built-in glyph names for the tiles in the row. | |
| rolls | GlyphName[][]DEFAULT_ROLLS Glyphs the tiles roll to: one list per roll (up to two), one name per tile. | |
| 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 glyphs. | |
| flood | string— Colour of the flood that fills the frame; also the shader base, the last highlight tint and the dots. | |
| 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[]
Built-in glyph names for the tiles in the row.
Default
["cluster", "download", "globe", "gear", "brackets"] - rollsGlyphName[][]
Glyphs the tiles roll to: one list per roll (up to two), one name per tile.
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 glyphs.
- floodstring
Colour of the flood that fills the frame; also the shader base, the last highlight tint and the dots.
- 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.
Common questions
How do I make a row of tool icons get cycled through by a selector, then a flood of brand colour fills the frame and the logo lands?
Install Flood Sting with npx shadcn@latest add @remocn/flood-sting and render <FloodSting icons={["cluster", "globe", "gear"]} pick={1} flood="#3B5BFD" logo={<YourLogo />} />. Budget at least 104 frames at 30 fps (208 at 60 fps).
Can I use my own app icons in the row?
Not as a prop: icons takes the eight built-in glyph names. Add your own SVG to the Glyph function in the copied file and its name to FloodStingGlyph in timeline.ts.
Can I turn off the animated shader?
There is no prop for it. Pick a calmer ground preset or set groundParams, or swap <GshGround> for a solid fill in the copied file; theme="light" keeps the stage light.
How long does each beat take?
At 30 fps: hops at 6, 18, 28, 36 and 42, press at 48, flood from 54 to 69, logo from 62, dots tucked by 104. Shift any of them with the timing prop.
Related effects
- Ink Bloom: a drop of ink blooms across the page into the logo.
- Liquid Fill: liquid rises inside an outlined mark until it is solid.
- Icon Scatter: a field of icons scattered over a cut.
- Ecosystem Constellation: a product logo orbited by integration satellites.