BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/remotionui/timing

timing

remotionui/timing
FreeUtility

Frame timing helpers and enter easing

Live preview

live · rendered by the registry
Rendered by remotionui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://remotionui.com/r/timing.json

Source

registry/bases/default/lib/timing.tsremotionui.com/r/timing.json
1import { Easing, interpolate } from "remotion";
2
3export const DEFAULT_FPS = 30;
4
5/** Crisp UI entrance curve from Remotion timing best practices */
6export const EASING_ENTER = Easing.bezier(0.16, 1, 0.3, 1);
7
8/** Exit curve — accelerates away (Easing.in) */
9export const EASING_EXIT = Easing.in(Easing.cubic);
10
11export function secondsToFrames(seconds: number, fps = DEFAULT_FPS): number {
12 return Math.round(seconds * fps);
13}
14
15export function framesToSeconds(frames: number, fps = DEFAULT_FPS): number {
16 return frames / fps;
17}
18
19export function staggerDelay(
20 index: number,
21 staggerInFrames: number,
22 baseDelayInFrames = 0,
23): number {
24 return baseDelayInFrames + index * staggerInFrames;
25}
26
27/** Normalized 0→1 enter progress with default ease-out curve */
28export function enterProgress(
29 frame: number,
30 delayInFrames: number,
31 durationInFrames: number,
32 easing = EASING_ENTER,
33): number {
34 return interpolate(
35 frame,
36 [delayInFrames, delayInFrames + durationInFrames],
37 [0, 1],
38 {
39 easing,
40 extrapolateLeft: "clamp",
41 extrapolateRight: "clamp",
42 },
43 );
44}
45
46/** Normalized 0→1 exit progress with default ease-in curve */
47export function exitProgress(
48 frame: number,
49 delayInFrames: number,
50 durationInFrames: number,
51 easing = EASING_EXIT,
52): number {
53 return interpolate(
54 frame,
55 [delayInFrames, delayInFrames + durationInFrames],
56 [0, 1],
57 {
58 easing,
59 extrapolateLeft: "clamp",
60 extrapolateRight: "clamp",
61 },
62 );
63}

Facts

Registry
remotionui
Type
registry:lib
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-07
Last confirmed
4 days ago

Go to the source

Docs on remotionui remotionui.com riaz37/remotion-ui on GitHub Raw registry item This item as JSON

More from remotionui

All 127 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-composer-utilsai-composer-utilsremotionuiUtilitiesFreeno deps
audio-viz-utilsaudio-viz-utilsremotionuiUtilitiesFreeno deps
caption-utilscaption-utilsremotionuiUtilitiesFreeno deps
chart-utilschart-utilsremotionuiUtilitiesFreeno deps
code-syntaxcode-syntaxremotionuiUtilitiesFreeno deps
layoutlayoutremotionuiUtilitiesFreeno deps
map-utilsmap-utilsremotionuiUtilitiesFreeno deps
media-utilsmedia-utilsremotionuiUtilitiesFreeno deps
BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex