Speed ramp
The shot slows down around its key moment and speeds back up.
tsx
import { Clip, Composition } from "@uberscene/kit";
// A speed ramp: the shot slows into a moment and speeds out of it, to dwell without a freeze.
const PAPER = "#f2eee6";
const INK = "#151515";
const ACCENT = "#d6336c";
export default function Video() {
return (
<Composition
fps={30}
width={640}
height={360}
background={{ type: "color", color: PAPER }}
theme={{
extends: "paper",
motion: "none",
fonts: { heading: "Inter", body: "Inter" },
palette: { primary: ACCENT, accent: ACCENT, background: PAPER, text: INK },
}}
>
<Clip
id="shot"
src="asset:redCup"
in={18}
out={20.4}
fit="cover"
speed={[
{ at: 0, value: 1, easing: "easeInOutQuad" },
{ at: 0.7, value: 0.3 },
{ at: 1.5, value: 0.3, easing: "easeInOutQuad" },
{ at: 2.1, value: 1 },
]}
/>
</Composition>
);
}What it conveys: The moment that matters, stretched so it can be seen.
Use it when
- A pour, a jump, a splash: one instant worth watching.
- Action footage that passes too fast.
Values
| Value | ||
|---|---|---|
| speed | 1, 0.3, 0.3, 1 | keys at 0, 0.7, 1.5 and 2.1 s, easeInOutQuad |
Ask your agent
Slow the shot to 0.3 speed around its key moment and back to 1 with keys on speed.
Goes with: Freeze with a label