0.0.5 • Published 8 years ago

motion-timeline v0.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

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)>} */
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago