Liquid Fill
A drop falls into an outlined mark and liquid rises with a sloshing surface and bubbles until the mark is solid. A free, MIT-licensed Remotion logo animation.
To animate a drop falling into an outlined logo shape and liquid rising inside it with sloshing waves and bubbles until it's solid, use Liquid Fill. It is a Remotion logo sting: the outline fades in, a drop lands, liquid fills the mark with a wavy surface and a few bubbles, the outline turns the liquid color so the mark reads as solid, and then your wordmark wipes in beside it.
$ pnpm dlx shadcn@latest add @remocn/liquid-fillHow to build this in Remotion
You don't need noise2D() from @remotion/noise, evolvePath() from @remotion/paths or a hand-written SVG clipPath wave. Install the component and pass your wordmark:
npx shadcn@latest add @remocn/liquid-fillThe liquid is an SVG path whose surface is two sine waves, clipped to the shape path. The splash dip and the slosh decay as the level climbs. The six bubbles get their positions from Remotion's seeded random(), so every render of a frame is the same, and there is no noise library involved.
Good to know
- Length: 49 frames of motion at 30 fps (98 at 60 fps), the mark turning solid around frame 34. That is the minimum for its
Sequence; add your own hold on top. Props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotionfrom npm, plus the remocn helpersframe-rateandtimeline. The shadcn CLI copies the source into your project. - Wordmark slide: it only happens when you pass
children. Leavechildrenout and the mark fills and stays centered, with no slide. - Drop, bubbles and slosh: there are no props for the drop size, bubble count or slosh strength. They are constants in the copied file (for example
BUBBLES = 6), so edit them there. - Phase timing: besides
speed, thetimingprop moves or stretches each phase by the idsdrop,fillandslide, in 30 fps frames.timing={{ fill: { stretch: 1.5 } }}fills the mark more slowly, and the wordmark slide follows it.
Usage
LiquidFill draws an outlined mark and fills it. A single drop falls in from
above and lands on the floor of the shape. Liquid rises from the bottom with a
surface that sloshes on two sine waves, dips where the drop splashed, and calms
as it climbs. A few bubbles rise through it. When the liquid reaches the top,
the outline turns the liquid color and the bubbles and surface line fade, so
the mark reads as solid. Then the mark slides left and your wordmark wipes in
on its right.
import { LiquidFill } from "@/components/remocn/liquid-fill";
export const LogoSting = () => (
<LiquidFill liquidColor="#E5322D" outlineColor="#FFFFFF">
<span
style={{
fontSize: 104,
fontWeight: 800,
letterSpacing: "-0.04em",
color: "#FFFFFF",
}}
>
remocn
</span>
</LiquidFill>
);Pass only the wordmark as children. Without children the mark stays
centered and no slide happens. The mark is 24% of the shorter side of the
composition (173px at 720p).
Custom shape
shape is SVG path data drawn in a 100×100 box. The liquid is clipped to it
and the outline is stroked along it, 3 units wide. Keep the shape inside about
2–98 on both axes so the stroke is not cut off, and make it one closed path,
since the drop lands at the center bottom.
<LiquidFill shape="M 50 4 A 46 46 0 1 1 49.9 4 Z" liquidColor="#2F6BFF">
<Wordmark />
</LiquidFill>Timing
In 30 fps frames, at speed={1}:
| Frames | Motion |
|---|---|
| 0–5 | Outline fades in |
| 0–9 | The drop falls and stretches as it speeds up |
| 9–34 | Liquid rises from the floor to over the top; the splash and sloshing decay as it climbs |
| 11–34 | Bubbles rise and pop at the surface |
| 32–37 | Outline turns the liquid color; surface line and bubbles fade |
| 36–47 | The mark slides from the center to the left |
| 38–49 | The wordmark wipes in from the left |
The docs preview runs 156 frames at 60 fps. speed scales the timeline.
Props8
| Prop | Type | Default |
|---|---|---|
| children | ReactNode— Wordmark revealed to the right of the mark once it is full. Without it the mark settles alone in the center | |
| shape | stringrounded square Mark outline as SVG path data in a 100×100 box | |
| liquidColor | string"#E5322D" Drop and liquid color; also the final outline color | |
| outlineColor | string"#FFFFFF" Outline color while the mark is filling | |
| bubbleColor | string"#FFFFFF" Bubble outline color | |
| backgroundColor | string"#111111" Full-frame background | |
| speed | number1 Playback multiplier | |
| timing | Timing<"drop" | "fill" | "slide">— Per-phase overrides: { start, length, stretch } by element id, in 30 fps frames. | |
- childrenReactNode
Wordmark revealed to the right of the mark once it is full. Without it the mark settles alone in the center
- shapestring
Mark outline as SVG path data in a 100×100 box
Default
rounded square - liquidColorstring
Drop and liquid color; also the final outline color
Default
"#E5322D" - outlineColorstring
Outline color while the mark is filling
Default
"#FFFFFF" - bubbleColorstring
Bubble outline color
Default
"#FFFFFF" - backgroundColorstring
Full-frame background
Default
"#111111" - speednumber
Playback multiplier
Default
1 - timingTiming<"drop" | "fill" | "slide">
Per-phase overrides: { start, length, stretch } by element id, in 30 fps frames.