3.0.1 • Published 5 years ago

kapellmeister v3.0.1

Weekly downloads
72,493
License
MIT
Repository
github
Last release
5 years ago

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