etro-js / etro

Typescript video-editing framework for the browser
https://etrojs.dev
GNU General Public License v3.0
898 stars 86 forks source link

Type `KeyFrame` constructor to accept custom interpolation functions #262

Open clabe45 opened 8 months ago

clabe45 commented 8 months ago

The KeyFrame constructor's values parameter can contain numbers, the keyframe's type T and custom interpolation methods (type). Type this parameter to allow custom interpolation methods.

See also: https://etrojs.dev/docs/reference/dynamic-properties/#keyframe-animations