How to use the react-motion.TransitionSpring 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 hayeah / react-motion-TransitionSpring-demo / build / app.js View on Github external
render: function render() {
    var _this = this;

    var letters = this.state.letters;

    return _react2["default"].createElement(
      _reactMotion.TransitionSpring,
      {
        endValue: this.getEndValue(),
        willEnter: this.willEnter,
        willLeave: this.willLeave },
      function (values) {
        return _react2["default"].createElement(
          "div",
          { className: "letters" },
          Object.keys(values).map(function (letter) {
            var _values$letter = values[letter];
            var scale = _values$letter.scale;
            var width = _values$letter.width;
            var margin = _values$letter.margin;

            var widthValue = Math.ceil(width.val - 0.5);
            var marginValue = Math.ceil(margin.val - 0.5);