Achievement Pop

Achievement toasts unlock one after another in a stack, the last a rare card, then a total and wordmark land. A free, MIT-licensed Remotion UI block.

Installation
$ pnpm dlx shadcn@latest add @remocn/achievement-pop

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { AchievementPop } from "@/components/remocn/achievement-pop";
 
const AchievementPopScene = () => (
  <AchievementPop
    achievements={[{ label: "Unlocked · 64% of makers", title: "Shipped in one day", points: 100, icon: "trophy" }, { label: "Rare · 1.8% of makers", title: "Launch video shipped", points: 250, icon: "star" }]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="AchievementPop"
    component={AchievementPopScene}
    durationInFrames={300}
    fps={60}
    width={1280}
    height={720}
  />
);

Up to three achievement pills pop in one at a time, each with an icon, a rarity label, a title and points, while the stack shifts up and a total counts. After the last pill the camera pushes in and a wordmark lands. Pass your own achievements; it ships light and dark through theme.

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

Props14

PropTypeDefault
achievements
{ label: string; title: string; points: number; icon?: 'trophy' | 'bolt' | 'star' }[]—

Up to three achievements. Icon is trophy, bolt or star.

theme
"dark" | "light""dark"

Color scheme. Ships light and dark.

ground
GshPresetId—

Shader preset id for the animated background.

groundParams
Partial<GradientParams>—

Partial shader parameters that override the ground preset.

background
string—

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

ink
string—

Text color; overrides the theme ink.

fontFamily
string"Geist"

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

totalLabel
string"Launch week"

Label above the running total in portrait.

unit
string"XP"

Unit shown after each points value and the total.

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.

accent
string—

Declared but not used by the current source.

  • achievements{ label: string; title: string; points: number; icon?: 'trophy' | 'bolt' | 'star' }[]

    Up to three achievements. Icon is trophy, bolt or star.

  • theme"dark" | "light"

    Color scheme. Ships light and dark.

    Default"dark"

  • groundGshPresetId

    Shader preset id for the animated background.

  • groundParamsPartial<GradientParams>

    Partial shader parameters that override the ground preset.

  • backgroundstring

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

  • inkstring

    Text color; overrides the theme ink.

  • fontFamilystring

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

    Default"Geist"

  • totalLabelstring

    Label above the running total in portrait.

    Default"Launch week"

  • unitstring

    Unit shown after each points value and the total.

    Default"XP"

  • logoReact.ReactNode

    Replaces the remocn mark.

  • 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

  • accentstring

    Declared but not used by the current source.