Skip to content

v1.0.0-rc.4

Compare
Choose a tag to compare
@k9p5 k9p5 released this 09 Sep 14:29
· 103 commits to main since this release
2aea7bf
  • Integrated Motion Canvas inspired animation API

Example

const text = await composition.add(
  new core.TextClip({
    text: 'Hello World',
    position: 'center',
    fontSize: 34
  })
);

// begin with calling the animate method
text.animate()
  .rotation(243).to(360 * 2, 15) // start at 243 deg, and animate to 2 * 360 deg in 15 frames
  .scale(0.3).to(1, 10) // scale from 0.3 to 1 in 10 frames