8
8
- [ useAnimation] ( API.md#useanimation )
9
9
- [ useAnimationFunction] ( API.md#useanimationfunction )
10
10
- [ useTransitionAnimation] ( API.md#usetransitionanimation )
11
+ - [ useScrollTimeline] ( API.md#usescrolltimeline )
12
+ - [ useViewTimeline] ( API.md#useviewtimeline )
11
13
12
14
### Interfaces
13
15
14
16
- [ TypedKeyframeEffectOptions] ( interfaces/TypedKeyframeEffectOptions.md )
15
17
- [ TransitionGroupProps] ( interfaces/TransitionGroupProps.md )
16
18
- [ BaseAnimationHandle] ( interfaces/BaseAnimationHandle.md )
17
19
- [ AnimationHandle] ( interfaces/AnimationHandle.md )
18
- - [ AnimationOptions] ( interfaces/AnimationOptions.md )
19
20
- [ AnimationFunctionHandle] ( interfaces/AnimationFunctionHandle.md )
20
21
- [ AnimationFunctionOptions] ( interfaces/AnimationFunctionOptions.md )
21
22
- [ TransitionAnimationHandle] ( interfaces/TransitionAnimationHandle.md )
22
23
- [ TransitionAnimationOptions] ( interfaces/TransitionAnimationOptions.md )
24
+ - [ ScrollTimelineOpts] ( interfaces/ScrollTimelineOpts.md )
25
+ - [ ViewTimelineOpts] ( interfaces/ViewTimelineOpts.md )
26
+ - [ AnimationOptions] ( interfaces/AnimationOptions.md )
27
+ - [ TimelineDefinition] ( interfaces/TimelineDefinition.md )
23
28
24
29
### Type Aliases
25
30
33
38
- [ ComputedTimingContext] ( API.md#computedtimingcontext )
34
39
- [ AnimationFunction] ( API.md#animationfunction )
35
40
- [ TransitionAnimationDefinition] ( API.md#transitionanimationdefinition )
41
+ - [ AnimationDefinition] ( API.md#animationdefinition )
42
+ - [ ScrollTimelineAxis] ( API.md#scrolltimelineaxis )
43
+ - [ ViewTimelineInset] ( API.md#viewtimelineinset )
36
44
37
45
## Functions
38
46
@@ -54,13 +62,13 @@ A component to manage enter/update/exit of its children by key, that works simil
54
62
55
63
#### Defined in
56
64
57
- [ src/react/components/TransitionGroup.tsx:74] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/components/TransitionGroup.tsx#L74 )
65
+ [ src/react/components/TransitionGroup.tsx:74] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/components/TransitionGroup.tsx#L74 )
58
66
59
67
___
60
68
61
69
### useAnimation
62
70
63
- ▸ ** useAnimation** <` Args ` \> (` keyframe ` , ` options? ` ): [ ` AnimationHandle ` ] ( interfaces/AnimationHandle.md ) <` Args ` \>
71
+ ▸ ** useAnimation** <` Args ` \> (` ...args ` ): [ ` AnimationHandle ` ] ( interfaces/AnimationHandle.md ) <` Args ` \>
64
72
65
73
A basic hook to use Web Animations API. See [ AnimationHandle] ( interfaces/AnimationHandle.md ) .
66
74
@@ -74,16 +82,15 @@ A basic hook to use Web Animations API. See [AnimationHandle](interfaces/Animati
74
82
75
83
| Name | Type |
76
84
| :------ | :------ |
77
- | ` keyframe ` | [ ` TypedKeyframe ` ] ( API.md#typedkeyframe ) \| [ ` TypedKeyframe ` ] ( API.md#typedkeyframe ) [ ] \| [ ` GetKeyframeFunction ` ] ( API.md#getkeyframefunction ) <` Args ` \> |
78
- | ` options? ` | [ ` AnimationOptions ` ] ( interfaces/AnimationOptions.md ) |
85
+ | ` ...args ` | [ ` AnimationDefinition ` ] ( API.md#animationdefinition ) <` Args ` \> |
79
86
80
87
#### Returns
81
88
82
89
[ ` AnimationHandle ` ] ( interfaces/AnimationHandle.md ) <` Args ` \>
83
90
84
91
#### Defined in
85
92
86
- [ src/react/hooks/useAnimation.ts:163 ] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/hooks/useAnimation.ts#L163 )
93
+ [ src/react/hooks/useAnimation.ts:104 ] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/hooks/useAnimation.ts#L104 )
87
94
88
95
___
89
96
@@ -112,7 +119,7 @@ Same as [useAnimation](API.md#useanimation), but it drives function not React el
112
119
113
120
#### Defined in
114
121
115
- [ src/react/hooks/useAnimationFunction.ts:69] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/hooks/useAnimationFunction.ts#L69 )
122
+ [ src/react/hooks/useAnimationFunction.ts:69] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/hooks/useAnimationFunction.ts#L69 )
116
123
117
124
___
118
125
@@ -138,7 +145,47 @@ This hook must be used under [TransitionGroup](API.md#transitiongroup) component
138
145
139
146
#### Defined in
140
147
141
- [ src/react/hooks/useTransitionAnimation.ts:38] ( https://github.com/inokawa/react-animatable/blob/23c2c4a/src/react/hooks/useTransitionAnimation.ts#L38 )
148
+ [ src/react/hooks/useTransitionAnimation.ts:38] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/hooks/useTransitionAnimation.ts#L38 )
149
+
150
+ ___
151
+
152
+ ### useScrollTimeline
153
+
154
+ ▸ ** useScrollTimeline** (` opts? ` ): [ ` TimelineDefinition ` ] ( interfaces/TimelineDefinition.md )
155
+
156
+ #### Parameters
157
+
158
+ | Name | Type |
159
+ | :------ | :------ |
160
+ | ` opts ` | [ ` ScrollTimelineOpts ` ] ( interfaces/ScrollTimelineOpts.md ) |
161
+
162
+ #### Returns
163
+
164
+ [ ` TimelineDefinition ` ] ( interfaces/TimelineDefinition.md )
165
+
166
+ #### Defined in
167
+
168
+ [ src/react/hooks/useScrollTimeline.ts:11] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/hooks/useScrollTimeline.ts#L11 )
169
+
170
+ ___
171
+
172
+ ### useViewTimeline
173
+
174
+ ▸ ** useViewTimeline** (` opts? ` ): [ ` TimelineDefinition ` ] ( interfaces/TimelineDefinition.md )
175
+
176
+ #### Parameters
177
+
178
+ | Name | Type |
179
+ | :------ | :------ |
180
+ | ` opts ` | [ ` ViewTimelineOpts ` ] ( interfaces/ViewTimelineOpts.md ) |
181
+
182
+ #### Returns
183
+
184
+ [ ` TimelineDefinition ` ] ( interfaces/TimelineDefinition.md )
185
+
186
+ #### Defined in
187
+
188
+ [ src/react/hooks/useViewTimeline.ts:16] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/hooks/useViewTimeline.ts#L16 )
142
189
143
190
## Type Aliases
144
191
@@ -150,17 +197,17 @@ Strictly typed [Keyframe](https://developer.mozilla.org/en-US/docs/Web/API/Web_A
150
197
151
198
#### Defined in
152
199
153
- [ src/core/waapi.ts:17] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L17 )
200
+ [ src/core/waapi.ts:17] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L17 )
154
201
155
202
___
156
203
157
204
### TypedEasing
158
205
159
- Ƭ ** TypedEasing** : ` NonNullable ` < ` Exclude ` <` CSSProperties ` [ `` "animationTimingFunction" `` ] , ` CSSProperties ` [ `` "all" `` ] \> \>
206
+ Ƭ ** TypedEasing** : ` Exclude ` <` CSSProperties ` [ `` "animationTimingFunction" `` ] , ` CSSProperties ` [ `` "all" `` ] \| ` undefined ` \>
160
207
161
208
#### Defined in
162
209
163
- [ src/core/waapi.ts:22] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L22 )
210
+ [ src/core/waapi.ts:22] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L22 )
164
211
165
212
___
166
213
@@ -180,7 +227,7 @@ A function to define keyframe dynamically
180
227
181
228
#### Defined in
182
229
183
- [ src/core/waapi.ts:31 ] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L31 )
230
+ [ src/core/waapi.ts:32 ] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L32 )
184
231
185
232
___
186
233
190
237
191
238
#### Defined in
192
239
193
- [ src/core/waapi.ts:4] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L4 )
240
+ [ src/core/waapi.ts:4] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L4 )
194
241
195
242
___
196
243
206
253
207
254
#### Defined in
208
255
209
- [ src/core/waapi.ts:74 ] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L74 )
256
+ [ src/core/waapi.ts:79 ] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L79 )
210
257
211
258
___
212
259
216
263
217
264
#### Defined in
218
265
219
- [ src/core/waapi.ts:145 ] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/core/waapi.ts#L145 )
266
+ [ src/core/waapi.ts:150 ] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/core/waapi.ts#L150 )
220
267
221
268
___
222
269
232
279
233
280
#### Defined in
234
281
235
- [ src/react/hooks/useAnimation.ts:29 ] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/hooks/useAnimation.ts#L29 )
282
+ [ src/react/hooks/useAnimation.ts:38 ] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/hooks/useAnimation.ts#L38 )
236
283
237
284
___
238
285
@@ -244,7 +291,7 @@ Non nullable [ComputedEffectTiming](https://developer.mozilla.org/en-US/docs/Web
244
291
245
292
#### Defined in
246
293
247
- [ src/react/hooks/useAnimationFunction.ts:32] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/hooks/useAnimationFunction.ts#L32 )
294
+ [ src/react/hooks/useAnimationFunction.ts:32] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/hooks/useAnimationFunction.ts#L32 )
248
295
249
296
___
250
297
@@ -265,7 +312,7 @@ In this callback you can update any state or ref in JS.
265
312
266
313
#### Defined in
267
314
268
- [ src/react/hooks/useAnimationFunction.ts:42] ( https://github.com/inokawa/react-animatable/blob/23c2c4a /src/react/hooks/useAnimationFunction.ts#L42 )
315
+ [ src/react/hooks/useAnimationFunction.ts:42] ( https://github.com/inokawa/react-animatable/blob/f732265 /src/react/hooks/useAnimationFunction.ts#L42 )
269
316
270
317
___
271
318
275
322
276
323
#### Defined in
277
324
278
- [ src/react/hooks/useTransitionAnimation.ts:28] ( https://github.com/inokawa/react-animatable/blob/23c2c4a/src/react/hooks/useTransitionAnimation.ts#L28 )
325
+ [ src/react/hooks/useTransitionAnimation.ts:28] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/hooks/useTransitionAnimation.ts#L28 )
326
+
327
+ ___
328
+
329
+ ### AnimationDefinition
330
+
331
+ Ƭ ** AnimationDefinition** <` Args ` \> : [ keyframe: TypedKeyframe \| TypedKeyframe[ ] \| GetKeyframeFunction<Args\> , options?: AnimationOptions]
332
+
333
+ #### Type parameters
334
+
335
+ | Name |
336
+ | :------ |
337
+ | ` Args ` |
338
+
339
+ #### Defined in
340
+
341
+ [ src/react/types/index.ts:12] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/types/index.ts#L12 )
342
+
343
+ ___
344
+
345
+ ### ScrollTimelineAxis
346
+
347
+ Ƭ ** ScrollTimelineAxis** : `` "block" `` \| `` "inline" `` \| `` "y" `` \| `` "x" ``
348
+
349
+ #### Defined in
350
+
351
+ [ src/react/types/index.ts:29] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/types/index.ts#L29 )
352
+
353
+ ___
354
+
355
+ ### ViewTimelineInset
356
+
357
+ Ƭ ** ViewTimelineInset** : `` "auto" `` \| ` string ` & {}
358
+
359
+ #### Defined in
360
+
361
+ [ src/react/types/index.ts:31] ( https://github.com/inokawa/react-animatable/blob/f732265/src/react/types/index.ts#L31 )
0 commit comments