npm.io
3.0.1 • Published 7 years ago

kapellmeister

Licence
MIT
Version
3.0.1
Deps
1
Size
46 kB
Vulns
0
Weekly
0
Stars
4
Kapellmeister

Kapellmeister

Build Status npm version npm downloads license gzip size

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

Keywords