@hua-labs/motion-core 2.2.2 → 2.3.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/README.md CHANGED
@@ -47,127 +47,44 @@ function Hero() {
47
47
 
48
48
  | Export | Type | Description |
49
49
  |--------|------|-------------|
50
- | `MotionEngine` | component | |
51
- | `motionEngine` | function | |
52
- | `type MotionFrame` | function | |
53
- | `type MotionOptions` | function | |
54
- | `type Motion` | function | |
55
- | `TransitionEffects` | component | |
56
- | `transitionEffects` | function | |
57
- | `type TransitionType` | function | |
58
- | `type TransitionOptions` | function | |
59
- | `PerformanceOptimizer` | component | |
60
- | `performanceOptimizer` | function | |
61
- | `type PerformanceOptimizerMetrics` | function | |
62
- | `type OptimizationConfig` | function | |
63
- | `useSimplePageMotion` | hook | |
64
- | `usePageMotions` | hook | |
65
- | `useSmartMotion` | hook | |
66
- | `useUnifiedMotion` | hook | |
50
+ | `useSimplePageMotion` | hook | Simple fade+slide page entrance animation |
51
+ | `usePageMotions` | hook | Multi-element page entrance orchestration |
52
+ | `useSmartMotion` | hook | Adaptive motion based on device performance |
53
+ | `useUnifiedMotion` | hook | All-in-one motion hook with presets |
67
54
  | `useFadeIn` | hook | Fade-in animation hook |
68
- | `useSlideUp` | hook | Slide-up animation hook |
69
- | `useSlideLeft` | hook | Slide-left animation hook |
70
- | `useSlideRight` | hook | Slide-right animation hook |
71
- | `useScaleIn` | hook | Scale-in animation hook |
72
- | `useBounceIn` | hook | Bounce-in animation hook |
73
- | `usePulse` | hook | |
74
- | `useSpringMotion` | hook | |
75
- | `useGradient` | hook | |
55
+ | `useSlideUp` | hook | Slide-up entrance animation |
56
+ | `useSlideLeft` | hook | Slide-left entrance animation |
57
+ | `useSlideRight` | hook | Slide-right entrance animation |
58
+ | `useScaleIn` | hook | Scale-in entrance animation |
59
+ | `useBounceIn` | hook | Bounce-in entrance animation |
60
+ | `usePulse` | hook | Repeating pulse animation |
61
+ | `useSpringMotion` | hook | Spring physics animation |
62
+ | `useGradient` | hook | Animated gradient background |
76
63
  | `useHoverMotion` | hook | Hover interaction animation |
77
- | `useClickToggle` | hook | |
78
- | `useFocusToggle` | hook | |
64
+ | `useClickToggle` | hook | Click-triggered toggle animation |
65
+ | `useFocusToggle` | hook | Focus-triggered toggle animation |
79
66
  | `useScrollReveal` | hook | Scroll-triggered reveal animation |
80
- | `useScrollProgress` | hook | |
81
- | `useMotionState` | hook | |
82
- | `useRepeat` | hook | |
83
- | `useToggleMotion` | hook | |
84
- | `useSlideDown` | hook | |
85
- | `useInView` | hook | |
86
- | `useMouse` | hook | |
87
- | `useReducedMotion` | hook | |
88
- | `useWindowSize` | hook | |
89
- | `useGesture` | hook | |
90
- | `useGestureMotion` | hook | |
91
- | `linear` | function | |
92
- | `easeIn` | function | |
93
- | `easeOut` | function | |
94
- | `easeInOut` | function | |
95
- | `easeInQuad` | function | |
96
- | `easeOutQuad` | function | |
97
- | `easeInOutQuad` | function | |
98
- | `type EasingFunction` | function | |
99
- | `type EasingType` | function | |
100
- | `getEasing` | function | |
101
- | `applyEasing` | function | |
102
- | `safeApplyEasing` | function | |
103
- | `isValidEasing` | function | |
104
- | `getAvailableEasings` | function | |
105
- | `isEasingFunction` | function | |
106
- | `easingPresets` | function | |
107
- | `getPresetEasing` | function | |
108
- | `UseUnifiedMotionOptions` | type | |
109
- | `PageType` | type | |
110
- | `MotionType` | type | |
111
- | `EntranceType` | type | |
112
- | `PageMotionElement` | type | |
113
- | `PageMotionsConfig` | type | |
114
- | `MotionState` | type | |
115
- | `PageMotionRef` | type | |
116
- | `BaseMotionOptions` | type | |
117
- | `BaseMotionReturn` | type | |
118
- | `MotionElement` | type | |
119
- | `MotionPreset` | type | |
120
- | `PresetConfig` | type | |
121
- | `SpringConfig` | type | |
122
- | `GestureConfig` | type | |
123
- | `OrchestrationConfig` | type | |
124
- | `FadeInOptions` | type | |
125
- | `SlideOptions` | type | |
126
- | `ScaleOptions` | type | |
127
- | `BounceOptions` | type | |
128
- | `PulseOptions` | type | |
129
- | `SpringOptions` | type | |
130
- | `GestureOptions` | type | |
131
- | `ScrollRevealOptions` | type | |
132
- | `ScrollRevealMotionType` | type | |
133
- | `GradientOptions` | type | |
134
- | `ToggleMotionOptions` | type | |
135
- | `RepeatOptions` | type | |
136
- | `HoverMotionOptions` | type | |
137
- | `InteractionReturn` | type | |
138
- | `InViewOptions` | type | |
139
- | `InViewReturn` | type | |
140
- | `MouseOptions` | type | |
141
- | `MouseReturn` | type | |
142
- | `ReducedMotionReturn` | type | |
143
- | `WindowSizeOptions` | type | |
144
- | `WindowSizeReturn` | type | |
145
- | `PerformanceMetrics` | type | |
146
- | `MotionConfig` | type | |
147
- | `MotionDirection` | type | |
148
- | `MotionEasing` | type | |
149
- | `MotionTrigger` | type | |
150
- | `MotionCallback` | type | |
151
- | `MotionProgressCallback` | type | |
152
- | `MotionStateCallback` | type | |
67
+ | `useScrollProgress` | hook | Scroll position as 0-1 progress value |
68
+ | `useMotionState` | hook | Animation state tracking (idle, running, complete) |
69
+ | `useRepeat` | hook | Repeating animation with configurable count |
70
+ | `useToggleMotion` | hook | Toggle between two animation states |
71
+ | `useSlideDown` | hook | Slide-down entrance animation |
72
+ | `useInView` | hook | IntersectionObserver-based visibility detection |
73
+ | `useMouse` | hook | Mouse position tracking |
74
+ | `useReducedMotion` | hook | Detect prefers-reduced-motion setting |
75
+ | `useWindowSize` | hook | Responsive window size tracking |
76
+ | `useGesture` | hook | Multi-gesture handler (drag, swipe, pinch) |
77
+ | `useGestureMotion` | hook | Gesture-driven motion animation |
78
+ | `easeInOut` | function | Smooth ease-in-out curve |
79
+ | `getEasing` | function | Get easing function by name |
153
80
 
154
81
  ## Documentation
155
82
 
156
83
  [Full Documentation](https://docs.hua-labs.com)
157
84
 
158
- ## Documentation
159
-
160
- - [Detailed Guide](./DETAILED_GUIDE.md)
161
- - [Documentation Site](https://docs.hua-labs.com)
162
-
163
85
  ## Related Packages
164
86
 
165
- - [`@hua-labs/pro`](https://www.npmjs.com/package/@hua-labs/pro) — Advanced motion hooks (orchestration, auto-animations)
166
- - [`@hua-labs/hua`](https://www.npmjs.com/package/@hua-labs/hua) — Framework (includes motion)
167
-
168
- ## Requirements
169
-
170
- React >= 19.0.0 · React DOM >= 19.0.0 · TypeScript >= 5.9
87
+ - [`@hua-labs/hua`](https://www.npmjs.com/package/@hua-labs/hua)
171
88
 
172
89
  ## License
173
90