Hex Fill

A honeycomb of hexagons fills with gradient cells around a ring up to a percentage reading. A free, MIT-licensed Remotion number animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/hex-fill

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { HexFill } from "@/components/remocn/hex-fill";
 
const HexFillScene = () => <HexFill value={86} label="of renders served from cache" rings={7} />;
 
export const RemotionRoot = () => (
  <Composition
    id="HexFill"
    component={HexFillScene}
    durationInFrames={280}
    fps={60}
    width={1280}
    height={720}
  />
);

A honeycomb of outlined hexagons appears ring by ring, then cells pop in with a gradient in a sweep around the circle up to the percentage, while a large reading counts up beside it with a label. Pass value as a percent from 0 to 100, plus label; rings sets the grid size. It ships light and dark through theme.

Props15

PropTypeDefault
value
number86

Percentage to fill, from 0 to 100.

label
string"of renders served from cache"

Caption beside the reading.

rings
number7

Rings of hexagons, from 3 to 10.

unit
string"%"

Mark after the figure.

accent
string"#3B5BFD"

Accent color of the fill gradient.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

fontFamily
string"Bricolage Grotesque"

Typeface for the copy. Load the font in your project first.

fontWeight
number300

Weight of the figure.

fillLength
number70

Frames the cells take to fill; the figure counts along with them.

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"

Light or dark palette.

speed
number1

Playback speed multiplier.

  • valuenumber

    Percentage to fill, from 0 to 100.

    Default86

  • labelstring

    Caption beside the reading.

    Default"of renders served from cache"

  • ringsnumber

    Rings of hexagons, from 3 to 10.

    Default7

  • unitstring

    Mark after the figure.

    Default"%"

  • accentstring

    Accent color of the fill gradient.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Bricolage Grotesque"

  • fontWeightnumber

    Weight of the figure.

    Default300

  • fillLengthnumber

    Frames the cells take to fill; the figure counts along with them.

    Default70

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark palette.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1