Skip to content

v1.0.0-rc.2

Compare
Choose a tag to compare
@k9p5 k9p5 released this 05 Sep 07:38
· 128 commits to main since this release
5ddad13

Functional Properties

We introduced functional properties for advance animations. Instead of a clip value/ Keyframe you can now assign a function.

Example

await composition.add(
 new core.ImageClip(new File(...), {
   x: (time: core.Timestamp) => time.seconds * 500,
   y: (time: core.Timestamp) => time.seconds * 200,
 })
);

When used in combination with regular functions, the this context will be the Clip itself.