How to use the react-move.createAnimate function in react-move

To help you get started, we’ve selected a few react-move examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-tools / react-move / docs / src / components / Animate.js View on Github external
import { createAnimate } from 'react-move'
import { interpolate, interpolateTransformSvg } from 'd3-interpolate'

export default createAnimate(function getInterpolator(attr, begValue, endValue) {
  if (attr === 'transform') {
    return interpolateTransformSvg(begValue, endValue)
  }

  return interpolate(begValue, endValue)
}, 'DocsAnimate')

react-move

Beautiful, data-driven animations for React.

MIT
Latest version published 4 years ago

Package Health Score

62 / 100
Full package analysis