Year in Review

A five-chapter story card walks through yearly stats and ends on a share button tap. A free, MIT-licensed Remotion social video animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/year-in-review

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { YearInReview } from "@/components/remocn/year-in-review";
 
const YearInReviewScene = () => (
  <YearInReview
    stats={{ year: "2026", product: "Kitebase", videos: 42, percentile: 3 }}
    device="phone"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="YearInReview"
    component={YearInReviewScene}
    durationInFrames={960}
    fps={60}
    width={1280}
    height={720}
  />
);

A phone (or flat card) plays five slides with a chapter rail: your year, videos shipped, top component, builder rank and a share card whose button gets tapped. Override any field of stats (year, product, videos, topComponent, runnersUp, percentile, minutes, crew, url) and rename the chapters with chapters. It has a single look and no theme prop.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props13

PropTypeDefault
stats
Partial<YearInReviewStats>—

Partial stats to override: year, product, videos, topComponent and more.

accent
string"#3B5BFD"

Accent color.

ink
string—

Color of the chapter titles and progress; overrides the default cream.

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

fontFamily
string"Hanken Grotesk"

Typeface for the body copy; headlines keep Bricolage Grotesque. 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.

speed
number1

Playback speed multiplier for the whole timeline.

device
"phone" | "card""phone"

Show the story in a phone frame or as a flat card.

chapters
string[]—

Five chapter titles shown on the progress rail.

rail
booleantrue

Chapter list beside the device; false leaves the device alone.

ground
GshPresetId—

gradients.sh preset id for the animated ground.

groundParams
Partial<GradientParams>—

Overrides for the ground shader parameters.

  • statsPartial<YearInReviewStats>

    Partial stats to override: year, product, videos, topComponent and more.

  • accentstring

    Accent color.

    Default"#3B5BFD"

  • inkstring

    Color of the chapter titles and progress; overrides the default cream.

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • fontFamilystring

    Typeface for the body copy; headlines keep Bricolage Grotesque. Load the font in your project first.

    Default"Hanken Grotesk"

  • 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

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • device"phone" | "card"

    Show the story in a phone frame or as a flat card.

    Default"phone"

  • chaptersstring[]

    Five chapter titles shown on the progress rail.

  • railboolean

    Chapter list beside the device; false leaves the device alone.

    Defaulttrue

  • groundGshPresetId

    gradients.sh preset id for the animated ground.

  • groundParamsPartial<GradientParams>

    Overrides for the ground shader parameters.