Blame view

天文台pc/tianwentai-ui/node_modules/framer-motion/dist/es/value/use-time.mjs 320 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
  "use client";
  import { useAnimationFrame } from '../utils/use-animation-frame.mjs';
  import { useMotionValue } from './use-motion-value.mjs';
  
  function useTime() {
      const time = useMotionValue(0);
      useAnimationFrame((t) => time.set(t));
      return time;
  }
  
  export { useTime };
  //# sourceMappingURL=use-time.mjs.map