()
| 13 | |
| 14 | export function useSpring(target: () => number, options?: Opt | (() => Opt), snapKey?: () => unknown) { |
| 15 | const read = () => (typeof options === "function" ? options() : options) |
| 16 | const [value, setValue] = createSignal(target()) |
| 17 | const source = motionValue(value()) |
| 18 | const spring = motionValue(value()) |