Skip to main content

时间安排

一个时机与一个演示一起形成过渡。
Remotion 提供了一些现成的时机,但你也可以创建你自己的

🌐 A timing together with a presentation forms a transition.
Remotion provides certain timings out of the box, but you can also create your own.

可用时间

🌐 Available timings

获取时间的持续时间

🌐 Getting the duration of a timing

你可以通过在时间上调用 getDurationInFrames() 来获取过渡的持续时间:

🌐 You can get the duration of a transition by calling getDurationInFrames() on the timing:

Assuming a framerate of 30fps
import { springTiming } from "@remotion/transitions"; springTiming({ config: { damping: 200 } }).getDurationInFrames({ fps: 30 }); // 23