@hua-labs/motion-core 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -92
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/.tsbuildinfo +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { useState, useRef, useCallback, useEffect, useMemo } from 'react';
|
|
2
3
|
|
|
3
4
|
// src/core/MotionEngine.ts
|
|
@@ -1662,7 +1663,7 @@ function useUnifiedMotion(options) {
|
|
|
1662
1663
|
const {
|
|
1663
1664
|
type,
|
|
1664
1665
|
duration = 600,
|
|
1665
|
-
autoStart =
|
|
1666
|
+
autoStart = true,
|
|
1666
1667
|
delay = 0,
|
|
1667
1668
|
easing: easing2,
|
|
1668
1669
|
threshold = 0.1,
|