React-Move animation background color change
问题 if you want to change color in react-move animate: import React from "react"; import ReactDOM from "react-dom"; import { interpolate, interpolateTransformSvg } from "d3-interpolate"; import Animate from "react-move/Animate"; function Stripes(props) { return ( <Animate start={{ backgroundColor: "red" }} enter={{ backgroundColor:["blue"] }} interpolation={(begValue, endValue, attr) => { if (attr === "transform") { return interpolateTransformSvg(begValue, endValue); } return interpolate(begValue