v1.0.0-rc.4
- 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