Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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')