How to use the react-motion/lib/stripStyle function in react-motion

To help you get started, weā€™ve selected a few react-motion 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 dantrain / react-stonecutter / src / components / SpringGrid.jsx View on Github external
willEnter = transitionStyle => {
    const { gridWidth, gridHeight } = this.state;
    const { enter } = this.props;

    return {
      ...stripStyle(transitionStyle.style),
      zIndex: 1,
      ...enter(transitionStyle.data.element.props, this.props, {
        gridWidth,
        gridHeight
      })
    };
  };