kapellmeister
v3.0.1
Published
Orchestration For Animated Transitions
Downloads
190,883
Readme
Kapellmeister
Orchestration for animated transitions. This is the code that powers react-move.
npm install kapellmeister
Example Usage
import { interpolateNumber } from 'd3-interpolate'
import { BaseNode } from 'kapellmeister'
class Node extends BaseNode {
getInterpolator(attr, a, b) {
return interpolateNumber(a, b)
}
}
const data = {
x: 0,
y: 0
}
const node = new Node(data)
node.transition({
x: [1],
y: [1]
})
Conductor Art by Arthur Shlain from the Noun Project