# HypeTicker

Count to a numeric result with explicit precision and tabular digits.

Page: https://20cuts.com/docs/components/hype-ticker

## Installation

Run from your product repository:

```sh
npx -y https://20cuts.com/releases/v0.3.0/20cuts-create-0.3.0.tgz video/20cuts
cd video/20cuts
npm ci
npm run studio
```

The installer includes this component, its source dependencies, runnable examples,
and skills for Codex and Claude Code. If 20cuts is already installed, import the
component from its existing source directory.

## Usage

```tsx
import { HypeTicker } from "./system/motion";

export default function VideoScene() {
  return (
    <HypeTicker value={120} suffix="+" at={0.4} duration={1.8} style={{fontSize: 160, fontWeight: 700}} />
  );
}
```


## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| value (required) | number | None | Final number. |
| from | number | 0 | Starting number. |
| prefix | string | "" | Text before the number. |
| suffix | string | "" | Text after the number. |
| decimals | number | 0 | Fraction digits; an integer from 0 to 6. |
| at | number | 0 | Start time in seconds within the current Remotion Sequence. |
| duration | number | 1.7 | Animation duration in seconds. |
| style | CSSProperties | None | Styles applied to the component wrapper. |



## Complete example

This is the source of the fictional component demonstration. Replace its content
with supported behavior and assets from your product.

```tsx
import React, { type CSSProperties, type ReactNode } from "react";

import { AbsoluteFill } from "remotion";

import { HypeTicker } from "./system";

const ink = "#141414", lime = "#b6f36b";

const center: CSSProperties = { display: "flex", alignItems: "center", justifyContent: "center" };

function Stage({ children, dark = false, style }: {
    children: ReactNode;
    dark?: boolean;
    style?: CSSProperties;
}) {
    return <AbsoluteFill style={{ fontFamily: "Arial, Helvetica, sans-serif", color: dark ? "#fff" : ink, background: dark ? ink : "#f7f7f5", ...center, ...style }}>{children}</AbsoluteFill>;
}

export function HypeTickerExample() { return <Stage dark><div style={{ textAlign: "center" }}><div style={{ fontSize: 30, color: "#aaa", marginBottom: 24 }}>Minutes back in your day</div><HypeTicker value={120} at={0.4} duration={2} suffix="+" style={{ fontSize: 200, fontWeight: 700, letterSpacing: "-0.07em", color: lime }}/></div></Stage>; }
```

Save it as src/HypeTickerExample.tsx. This demonstration uses
1280×720, 30fps and 180 frames.
For a separate entry point, replace src/index.tsx with this registration, then
run npm run studio:

```tsx
import { Composition, registerRoot } from "remotion";
import { HypeTickerExample } from "./HypeTickerExample";

registerRoot(() => (
  <Composition
    id="HypeTickerExample"
    component={HypeTickerExample}
    width={1280}
    height={720}
    fps={30}
    durationInFrames={180}
  />
));
```

## Source

- https://20cuts.com/animation-system/library/source/motion/typography.tsx
- https://20cuts.com/animation-system/library/source/motion/core.ts

## Agent instructions

Use the 20cuts HypeTicker component in this project's Remotion composition. Count up to a verified product metric over 1.8 seconds and hold the final number; replace all demonstration metrics with supported claims. Keep motion frame-driven and put timing in seconds relative to the current Sequence. Use the product's actual copy and assets. Preview the composition before rendering.
