motion-timeline
v0.0.5
Published
Compute a animation state from steps description in timeline
Downloads
9
Readme
motion-timeline
Compute animation changes from a description of step changes.
Installation
npm install motion-timeline
Usage
let myAttributes = {id: 'foobar'};
let timeline = new MotionTimeline({foobar: myAttributes});
let channel = timeline.createChannel();
let step = channel.createStep(1.0, 'linear');
step1.translate('foobar', 100, 0);
console.log(timeline.computeState(0.5).foobar);
/* {id: 'foobar', matrix: <Matrix(1, 0, 0, 1, 50, 0)>} */