"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../value/index.js");
const isMotionValue = require("../value/utils/is-motion-value.js");
const transitions = require("./utils/transitions.js");
function animate(from, to, transition) {
  if (transition === void 0) {
    transition = {};
  }
  var value = isMotionValue.isMotionValue(from) ? from : index.motionValue(from);
  transitions.startAnimation("", value, to, transition);
  return {
    stop: function() {
      return value.stop();
    },
    isAnimating: function() {
      return value.isAnimating();
    }
  };
}
exports.animate = animate;
//# sourceMappingURL=animate.js.map
