# ScaleIn

Reveal an element by scaling from a chosen size and origin.

Page: https://20cuts.com/docs/components/scale-in

## 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 { ScaleIn } from "./system/motion";

export default function VideoScene() {
  return (
    <ScaleIn from={0.8} at={0.4} duration={0.7}><div style={{padding: 48, background: "#b6f36b", borderRadius: 24}}>Your product</div></ScaleIn>
  );
}
```


## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| children (required) | ReactNode | None | React content to display. |
| at | number | 0 | Start time in seconds within the current Remotion Sequence. |
| duration | number | 0.6 | Animation duration in seconds. |
| from | number | 0.88 | Starting scale; the final scale is 1. |
| origin | string | "50% 50%" | CSS transform-origin. |
| 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 { ScaleIn } 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>;
}

function Icon() {
    return <div style={{ width: 160, height: 160, background: lime, borderRadius: 38, ...center, boxShadow: "0 25px 60px #0002" }}><svg width="92" height="92" viewBox="0 0 92 92"><path d="M14 46 38 22 38 46 62 22 62 70 38 70 38 46 14 70Z" fill={ink}/></svg></div>;
}

export function ScaleInExample() { return <Stage dark><ScaleIn at={0.4} duration={1} from={0.35}><Icon /></ScaleIn></Stage>; }
```

Save it as src/ScaleInExample.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 { ScaleInExample } from "./ScaleInExample";

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

## Source

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

## Agent instructions

Use the 20cuts ScaleIn component in this project's Remotion composition. Introduce the product mark by scaling from 0.8 to 1 with a simultaneous fade; use a short, purposeful entrance. 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.
