import { motionValue } from "../value/index.js";
import { isMotionValue } from "../value/utils/is-motion-value.js";
import { startAnimation } from "./utils/transitions.js";
function animate(from, to, transition) {
  if (transition === void 0) {
    transition = {};
  }
  var value = isMotionValue(from) ? from : motionValue(from);
  startAnimation("", value, to, transition);
  return {
    stop: function() {
      return value.stop();
    },
    isAnimating: function() {
      return value.isAnimating();
    }
  };
}
export {
  animate
};
//# sourceMappingURL=animate.js.map
