@humanspeak/svelte-motion 0.0.9 → 0.0.10
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/dist/html/index.d.ts +1296 -0
- package/dist/types.d.ts +66 -0
- package/package.json +1 -1
package/dist/html/index.d.ts
CHANGED
|
@@ -55,59 +55,1355 @@ import Ul from './Ul.svelte';
|
|
|
55
55
|
import Wbr from './Wbr.svelte';
|
|
56
56
|
export { A, Area, Article, Aside, Base, Blockquote, Br, Button, Code, Col, Dd, Div, Dl, Dt, Embed, Fieldset, Figcaption, Figure, Footer, Form, H1, H2, H3, H4, H5, H6, Header, Hr, Img, Input, Label, Legend, Li, Main, Nav, Ol, Option, P, Param, Pre, Section, Select, Source, Span, Table, Tbody, Td, Textarea, Tfoot, Th, Thead, Tr, Track, Ul, Wbr };
|
|
57
57
|
export type MotionComponents = {
|
|
58
|
+
/**
|
|
59
|
+
* A motion-enhanced a element with animation capabilities.
|
|
60
|
+
*
|
|
61
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
62
|
+
*
|
|
63
|
+
* Currently supported features:
|
|
64
|
+
* * `initial`
|
|
65
|
+
* * `animate`
|
|
66
|
+
* * `transition`
|
|
67
|
+
* * `whileTap`
|
|
68
|
+
*
|
|
69
|
+
* ```svelte
|
|
70
|
+
* <motion.a
|
|
71
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
72
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
73
|
+
* transition={{ duration: 0.3 }}
|
|
74
|
+
* >
|
|
75
|
+
* Content
|
|
76
|
+
* </motion.a>
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* Note: Some motion features are still under development.
|
|
80
|
+
* Check documentation for latest updates.
|
|
81
|
+
*/
|
|
58
82
|
a: typeof A;
|
|
83
|
+
/**
|
|
84
|
+
* A motion-enhanced article element with animation capabilities.
|
|
85
|
+
*
|
|
86
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
87
|
+
*
|
|
88
|
+
* Currently supported features:
|
|
89
|
+
* * `initial`
|
|
90
|
+
* * `animate`
|
|
91
|
+
* * `transition`
|
|
92
|
+
* * `whileTap`
|
|
93
|
+
*
|
|
94
|
+
* ```svelte
|
|
95
|
+
* <motion.article
|
|
96
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
97
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
98
|
+
* transition={{ duration: 0.3 }}
|
|
99
|
+
* >
|
|
100
|
+
* Content
|
|
101
|
+
* </motion.article>
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* Note: Some motion features are still under development.
|
|
105
|
+
* Check documentation for latest updates.
|
|
106
|
+
*/
|
|
59
107
|
article: typeof Article;
|
|
108
|
+
/**
|
|
109
|
+
* A motion-enhanced aside element with animation capabilities.
|
|
110
|
+
*
|
|
111
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
112
|
+
*
|
|
113
|
+
* Currently supported features:
|
|
114
|
+
* * `initial`
|
|
115
|
+
* * `animate`
|
|
116
|
+
* * `transition`
|
|
117
|
+
* * `whileTap`
|
|
118
|
+
*
|
|
119
|
+
* ```svelte
|
|
120
|
+
* <motion.aside
|
|
121
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
122
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
123
|
+
* transition={{ duration: 0.3 }}
|
|
124
|
+
* >
|
|
125
|
+
* Content
|
|
126
|
+
* </motion.aside>
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* Note: Some motion features are still under development.
|
|
130
|
+
* Check documentation for latest updates.
|
|
131
|
+
*/
|
|
60
132
|
aside: typeof Aside;
|
|
133
|
+
/**
|
|
134
|
+
* A motion-enhanced blockquote element with animation capabilities.
|
|
135
|
+
*
|
|
136
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
137
|
+
*
|
|
138
|
+
* Currently supported features:
|
|
139
|
+
* * `initial`
|
|
140
|
+
* * `animate`
|
|
141
|
+
* * `transition`
|
|
142
|
+
* * `whileTap`
|
|
143
|
+
*
|
|
144
|
+
* ```svelte
|
|
145
|
+
* <motion.blockquote
|
|
146
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
147
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
148
|
+
* transition={{ duration: 0.3 }}
|
|
149
|
+
* >
|
|
150
|
+
* Content
|
|
151
|
+
* </motion.blockquote>
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* Note: Some motion features are still under development.
|
|
155
|
+
* Check documentation for latest updates.
|
|
156
|
+
*/
|
|
61
157
|
blockquote: typeof Blockquote;
|
|
158
|
+
/**
|
|
159
|
+
* A motion-enhanced button element with animation capabilities.
|
|
160
|
+
*
|
|
161
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
162
|
+
*
|
|
163
|
+
* Currently supported features:
|
|
164
|
+
* * `initial`
|
|
165
|
+
* * `animate`
|
|
166
|
+
* * `transition`
|
|
167
|
+
* * `whileTap`
|
|
168
|
+
*
|
|
169
|
+
* ```svelte
|
|
170
|
+
* <motion.button
|
|
171
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
172
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
173
|
+
* transition={{ duration: 0.3 }}
|
|
174
|
+
* >
|
|
175
|
+
* Content
|
|
176
|
+
* </motion.button>
|
|
177
|
+
* ```
|
|
178
|
+
*
|
|
179
|
+
* Note: Some motion features are still under development.
|
|
180
|
+
* Check documentation for latest updates.
|
|
181
|
+
*/
|
|
62
182
|
button: typeof Button;
|
|
183
|
+
/**
|
|
184
|
+
* A motion-enhanced code element with animation capabilities.
|
|
185
|
+
*
|
|
186
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
187
|
+
*
|
|
188
|
+
* Currently supported features:
|
|
189
|
+
* * `initial`
|
|
190
|
+
* * `animate`
|
|
191
|
+
* * `transition`
|
|
192
|
+
* * `whileTap`
|
|
193
|
+
*
|
|
194
|
+
* ```svelte
|
|
195
|
+
* <motion.code
|
|
196
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
197
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
198
|
+
* transition={{ duration: 0.3 }}
|
|
199
|
+
* >
|
|
200
|
+
* Content
|
|
201
|
+
* </motion.code>
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* Note: Some motion features are still under development.
|
|
205
|
+
* Check documentation for latest updates.
|
|
206
|
+
*/
|
|
63
207
|
code: typeof Code;
|
|
208
|
+
/**
|
|
209
|
+
* A motion-enhanced dd element with animation capabilities.
|
|
210
|
+
*
|
|
211
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
212
|
+
*
|
|
213
|
+
* Currently supported features:
|
|
214
|
+
* * `initial`
|
|
215
|
+
* * `animate`
|
|
216
|
+
* * `transition`
|
|
217
|
+
* * `whileTap`
|
|
218
|
+
*
|
|
219
|
+
* ```svelte
|
|
220
|
+
* <motion.dd
|
|
221
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
222
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
223
|
+
* transition={{ duration: 0.3 }}
|
|
224
|
+
* >
|
|
225
|
+
* Content
|
|
226
|
+
* </motion.dd>
|
|
227
|
+
* ```
|
|
228
|
+
*
|
|
229
|
+
* Note: Some motion features are still under development.
|
|
230
|
+
* Check documentation for latest updates.
|
|
231
|
+
*/
|
|
64
232
|
dd: typeof Dd;
|
|
233
|
+
/**
|
|
234
|
+
* A motion-enhanced div element with animation capabilities.
|
|
235
|
+
*
|
|
236
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
237
|
+
*
|
|
238
|
+
* Currently supported features:
|
|
239
|
+
* * `initial`
|
|
240
|
+
* * `animate`
|
|
241
|
+
* * `transition`
|
|
242
|
+
* * `whileTap`
|
|
243
|
+
*
|
|
244
|
+
* ```svelte
|
|
245
|
+
* <motion.div
|
|
246
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
247
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
248
|
+
* transition={{ duration: 0.3 }}
|
|
249
|
+
* >
|
|
250
|
+
* Content
|
|
251
|
+
* </motion.div>
|
|
252
|
+
* ```
|
|
253
|
+
*
|
|
254
|
+
* Note: Some motion features are still under development.
|
|
255
|
+
* Check documentation for latest updates.
|
|
256
|
+
*/
|
|
65
257
|
div: typeof Div;
|
|
258
|
+
/**
|
|
259
|
+
* A motion-enhanced dl element with animation capabilities.
|
|
260
|
+
*
|
|
261
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
262
|
+
*
|
|
263
|
+
* Currently supported features:
|
|
264
|
+
* * `initial`
|
|
265
|
+
* * `animate`
|
|
266
|
+
* * `transition`
|
|
267
|
+
* * `whileTap`
|
|
268
|
+
*
|
|
269
|
+
* ```svelte
|
|
270
|
+
* <motion.dl
|
|
271
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
272
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
273
|
+
* transition={{ duration: 0.3 }}
|
|
274
|
+
* >
|
|
275
|
+
* Content
|
|
276
|
+
* </motion.dl>
|
|
277
|
+
* ```
|
|
278
|
+
*
|
|
279
|
+
* Note: Some motion features are still under development.
|
|
280
|
+
* Check documentation for latest updates.
|
|
281
|
+
*/
|
|
66
282
|
dl: typeof Dl;
|
|
283
|
+
/**
|
|
284
|
+
* A motion-enhanced dt element with animation capabilities.
|
|
285
|
+
*
|
|
286
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
287
|
+
*
|
|
288
|
+
* Currently supported features:
|
|
289
|
+
* * `initial`
|
|
290
|
+
* * `animate`
|
|
291
|
+
* * `transition`
|
|
292
|
+
* * `whileTap`
|
|
293
|
+
*
|
|
294
|
+
* ```svelte
|
|
295
|
+
* <motion.dt
|
|
296
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
297
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
298
|
+
* transition={{ duration: 0.3 }}
|
|
299
|
+
* >
|
|
300
|
+
* Content
|
|
301
|
+
* </motion.dt>
|
|
302
|
+
* ```
|
|
303
|
+
*
|
|
304
|
+
* Note: Some motion features are still under development.
|
|
305
|
+
* Check documentation for latest updates.
|
|
306
|
+
*/
|
|
67
307
|
dt: typeof Dt;
|
|
308
|
+
/**
|
|
309
|
+
* A motion-enhanced fieldset element with animation capabilities.
|
|
310
|
+
*
|
|
311
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
312
|
+
*
|
|
313
|
+
* Currently supported features:
|
|
314
|
+
* * `initial`
|
|
315
|
+
* * `animate`
|
|
316
|
+
* * `transition`
|
|
317
|
+
* * `whileTap`
|
|
318
|
+
*
|
|
319
|
+
* ```svelte
|
|
320
|
+
* <motion.fieldset
|
|
321
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
322
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
323
|
+
* transition={{ duration: 0.3 }}
|
|
324
|
+
* >
|
|
325
|
+
* Content
|
|
326
|
+
* </motion.fieldset>
|
|
327
|
+
* ```
|
|
328
|
+
*
|
|
329
|
+
* Note: Some motion features are still under development.
|
|
330
|
+
* Check documentation for latest updates.
|
|
331
|
+
*/
|
|
68
332
|
fieldset: typeof Fieldset;
|
|
333
|
+
/**
|
|
334
|
+
* A motion-enhanced figcaption element with animation capabilities.
|
|
335
|
+
*
|
|
336
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
337
|
+
*
|
|
338
|
+
* Currently supported features:
|
|
339
|
+
* * `initial`
|
|
340
|
+
* * `animate`
|
|
341
|
+
* * `transition`
|
|
342
|
+
* * `whileTap`
|
|
343
|
+
*
|
|
344
|
+
* ```svelte
|
|
345
|
+
* <motion.figcaption
|
|
346
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
347
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
348
|
+
* transition={{ duration: 0.3 }}
|
|
349
|
+
* >
|
|
350
|
+
* Content
|
|
351
|
+
* </motion.figcaption>
|
|
352
|
+
* ```
|
|
353
|
+
*
|
|
354
|
+
* Note: Some motion features are still under development.
|
|
355
|
+
* Check documentation for latest updates.
|
|
356
|
+
*/
|
|
69
357
|
figcaption: typeof Figcaption;
|
|
358
|
+
/**
|
|
359
|
+
* A motion-enhanced figure element with animation capabilities.
|
|
360
|
+
*
|
|
361
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
362
|
+
*
|
|
363
|
+
* Currently supported features:
|
|
364
|
+
* * `initial`
|
|
365
|
+
* * `animate`
|
|
366
|
+
* * `transition`
|
|
367
|
+
* * `whileTap`
|
|
368
|
+
*
|
|
369
|
+
* ```svelte
|
|
370
|
+
* <motion.figure
|
|
371
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
372
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
373
|
+
* transition={{ duration: 0.3 }}
|
|
374
|
+
* >
|
|
375
|
+
* Content
|
|
376
|
+
* </motion.figure>
|
|
377
|
+
* ```
|
|
378
|
+
*
|
|
379
|
+
* Note: Some motion features are still under development.
|
|
380
|
+
* Check documentation for latest updates.
|
|
381
|
+
*/
|
|
70
382
|
figure: typeof Figure;
|
|
383
|
+
/**
|
|
384
|
+
* A motion-enhanced footer element with animation capabilities.
|
|
385
|
+
*
|
|
386
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
387
|
+
*
|
|
388
|
+
* Currently supported features:
|
|
389
|
+
* * `initial`
|
|
390
|
+
* * `animate`
|
|
391
|
+
* * `transition`
|
|
392
|
+
* * `whileTap`
|
|
393
|
+
*
|
|
394
|
+
* ```svelte
|
|
395
|
+
* <motion.footer
|
|
396
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
397
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
398
|
+
* transition={{ duration: 0.3 }}
|
|
399
|
+
* >
|
|
400
|
+
* Content
|
|
401
|
+
* </motion.footer>
|
|
402
|
+
* ```
|
|
403
|
+
*
|
|
404
|
+
* Note: Some motion features are still under development.
|
|
405
|
+
* Check documentation for latest updates.
|
|
406
|
+
*/
|
|
71
407
|
footer: typeof Footer;
|
|
408
|
+
/**
|
|
409
|
+
* A motion-enhanced form element with animation capabilities.
|
|
410
|
+
*
|
|
411
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
412
|
+
*
|
|
413
|
+
* Currently supported features:
|
|
414
|
+
* * `initial`
|
|
415
|
+
* * `animate`
|
|
416
|
+
* * `transition`
|
|
417
|
+
* * `whileTap`
|
|
418
|
+
*
|
|
419
|
+
* ```svelte
|
|
420
|
+
* <motion.form
|
|
421
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
422
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
423
|
+
* transition={{ duration: 0.3 }}
|
|
424
|
+
* >
|
|
425
|
+
* Content
|
|
426
|
+
* </motion.form>
|
|
427
|
+
* ```
|
|
428
|
+
*
|
|
429
|
+
* Note: Some motion features are still under development.
|
|
430
|
+
* Check documentation for latest updates.
|
|
431
|
+
*/
|
|
72
432
|
form: typeof Form;
|
|
433
|
+
/**
|
|
434
|
+
* A motion-enhanced h1 element with animation capabilities.
|
|
435
|
+
*
|
|
436
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
437
|
+
*
|
|
438
|
+
* Currently supported features:
|
|
439
|
+
* * `initial`
|
|
440
|
+
* * `animate`
|
|
441
|
+
* * `transition`
|
|
442
|
+
* * `whileTap`
|
|
443
|
+
*
|
|
444
|
+
* ```svelte
|
|
445
|
+
* <motion.h1
|
|
446
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
447
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
448
|
+
* transition={{ duration: 0.3 }}
|
|
449
|
+
* >
|
|
450
|
+
* Content
|
|
451
|
+
* </motion.h1>
|
|
452
|
+
* ```
|
|
453
|
+
*
|
|
454
|
+
* Note: Some motion features are still under development.
|
|
455
|
+
* Check documentation for latest updates.
|
|
456
|
+
*/
|
|
73
457
|
h1: typeof H1;
|
|
458
|
+
/**
|
|
459
|
+
* A motion-enhanced h2 element with animation capabilities.
|
|
460
|
+
*
|
|
461
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
462
|
+
*
|
|
463
|
+
* Currently supported features:
|
|
464
|
+
* * `initial`
|
|
465
|
+
* * `animate`
|
|
466
|
+
* * `transition`
|
|
467
|
+
* * `whileTap`
|
|
468
|
+
*
|
|
469
|
+
* ```svelte
|
|
470
|
+
* <motion.h2
|
|
471
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
472
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
473
|
+
* transition={{ duration: 0.3 }}
|
|
474
|
+
* >
|
|
475
|
+
* Content
|
|
476
|
+
* </motion.h2>
|
|
477
|
+
* ```
|
|
478
|
+
*
|
|
479
|
+
* Note: Some motion features are still under development.
|
|
480
|
+
* Check documentation for latest updates.
|
|
481
|
+
*/
|
|
74
482
|
h2: typeof H2;
|
|
483
|
+
/**
|
|
484
|
+
* A motion-enhanced h3 element with animation capabilities.
|
|
485
|
+
*
|
|
486
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
487
|
+
*
|
|
488
|
+
* Currently supported features:
|
|
489
|
+
* * `initial`
|
|
490
|
+
* * `animate`
|
|
491
|
+
* * `transition`
|
|
492
|
+
* * `whileTap`
|
|
493
|
+
*
|
|
494
|
+
* ```svelte
|
|
495
|
+
* <motion.h3
|
|
496
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
497
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
498
|
+
* transition={{ duration: 0.3 }}
|
|
499
|
+
* >
|
|
500
|
+
* Content
|
|
501
|
+
* </motion.h3>
|
|
502
|
+
* ```
|
|
503
|
+
*
|
|
504
|
+
* Note: Some motion features are still under development.
|
|
505
|
+
* Check documentation for latest updates.
|
|
506
|
+
*/
|
|
75
507
|
h3: typeof H3;
|
|
508
|
+
/**
|
|
509
|
+
* A motion-enhanced h4 element with animation capabilities.
|
|
510
|
+
*
|
|
511
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
512
|
+
*
|
|
513
|
+
* Currently supported features:
|
|
514
|
+
* * `initial`
|
|
515
|
+
* * `animate`
|
|
516
|
+
* * `transition`
|
|
517
|
+
* * `whileTap`
|
|
518
|
+
*
|
|
519
|
+
* ```svelte
|
|
520
|
+
* <motion.h4
|
|
521
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
522
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
523
|
+
* transition={{ duration: 0.3 }}
|
|
524
|
+
* >
|
|
525
|
+
* Content
|
|
526
|
+
* </motion.h4>
|
|
527
|
+
* ```
|
|
528
|
+
*
|
|
529
|
+
* Note: Some motion features are still under development.
|
|
530
|
+
* Check documentation for latest updates.
|
|
531
|
+
*/
|
|
76
532
|
h4: typeof H4;
|
|
533
|
+
/**
|
|
534
|
+
* A motion-enhanced h5 element with animation capabilities.
|
|
535
|
+
*
|
|
536
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
537
|
+
*
|
|
538
|
+
* Currently supported features:
|
|
539
|
+
* * `initial`
|
|
540
|
+
* * `animate`
|
|
541
|
+
* * `transition`
|
|
542
|
+
* * `whileTap`
|
|
543
|
+
*
|
|
544
|
+
* ```svelte
|
|
545
|
+
* <motion.h5
|
|
546
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
547
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
548
|
+
* transition={{ duration: 0.3 }}
|
|
549
|
+
* >
|
|
550
|
+
* Content
|
|
551
|
+
* </motion.h5>
|
|
552
|
+
* ```
|
|
553
|
+
*
|
|
554
|
+
* Note: Some motion features are still under development.
|
|
555
|
+
* Check documentation for latest updates.
|
|
556
|
+
*/
|
|
77
557
|
h5: typeof H5;
|
|
558
|
+
/**
|
|
559
|
+
* A motion-enhanced h6 element with animation capabilities.
|
|
560
|
+
*
|
|
561
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
562
|
+
*
|
|
563
|
+
* Currently supported features:
|
|
564
|
+
* * `initial`
|
|
565
|
+
* * `animate`
|
|
566
|
+
* * `transition`
|
|
567
|
+
* * `whileTap`
|
|
568
|
+
*
|
|
569
|
+
* ```svelte
|
|
570
|
+
* <motion.h6
|
|
571
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
572
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
573
|
+
* transition={{ duration: 0.3 }}
|
|
574
|
+
* >
|
|
575
|
+
* Content
|
|
576
|
+
* </motion.h6>
|
|
577
|
+
* ```
|
|
578
|
+
*
|
|
579
|
+
* Note: Some motion features are still under development.
|
|
580
|
+
* Check documentation for latest updates.
|
|
581
|
+
*/
|
|
78
582
|
h6: typeof H6;
|
|
583
|
+
/**
|
|
584
|
+
* A motion-enhanced header element with animation capabilities.
|
|
585
|
+
*
|
|
586
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
587
|
+
*
|
|
588
|
+
* Currently supported features:
|
|
589
|
+
* * `initial`
|
|
590
|
+
* * `animate`
|
|
591
|
+
* * `transition`
|
|
592
|
+
* * `whileTap`
|
|
593
|
+
*
|
|
594
|
+
* ```svelte
|
|
595
|
+
* <motion.header
|
|
596
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
597
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
598
|
+
* transition={{ duration: 0.3 }}
|
|
599
|
+
* >
|
|
600
|
+
* Content
|
|
601
|
+
* </motion.header>
|
|
602
|
+
* ```
|
|
603
|
+
*
|
|
604
|
+
* Note: Some motion features are still under development.
|
|
605
|
+
* Check documentation for latest updates.
|
|
606
|
+
*/
|
|
79
607
|
header: typeof Header;
|
|
608
|
+
/**
|
|
609
|
+
* A motion-enhanced label element with animation capabilities.
|
|
610
|
+
*
|
|
611
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
612
|
+
*
|
|
613
|
+
* Currently supported features:
|
|
614
|
+
* * `initial`
|
|
615
|
+
* * `animate`
|
|
616
|
+
* * `transition`
|
|
617
|
+
* * `whileTap`
|
|
618
|
+
*
|
|
619
|
+
* ```svelte
|
|
620
|
+
* <motion.label
|
|
621
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
622
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
623
|
+
* transition={{ duration: 0.3 }}
|
|
624
|
+
* >
|
|
625
|
+
* Content
|
|
626
|
+
* </motion.label>
|
|
627
|
+
* ```
|
|
628
|
+
*
|
|
629
|
+
* Note: Some motion features are still under development.
|
|
630
|
+
* Check documentation for latest updates.
|
|
631
|
+
*/
|
|
80
632
|
label: typeof Label;
|
|
633
|
+
/**
|
|
634
|
+
* A motion-enhanced legend element with animation capabilities.
|
|
635
|
+
*
|
|
636
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
637
|
+
*
|
|
638
|
+
* Currently supported features:
|
|
639
|
+
* * `initial`
|
|
640
|
+
* * `animate`
|
|
641
|
+
* * `transition`
|
|
642
|
+
* * `whileTap`
|
|
643
|
+
*
|
|
644
|
+
* ```svelte
|
|
645
|
+
* <motion.legend
|
|
646
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
647
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
648
|
+
* transition={{ duration: 0.3 }}
|
|
649
|
+
* >
|
|
650
|
+
* Content
|
|
651
|
+
* </motion.legend>
|
|
652
|
+
* ```
|
|
653
|
+
*
|
|
654
|
+
* Note: Some motion features are still under development.
|
|
655
|
+
* Check documentation for latest updates.
|
|
656
|
+
*/
|
|
81
657
|
legend: typeof Legend;
|
|
658
|
+
/**
|
|
659
|
+
* A motion-enhanced li element with animation capabilities.
|
|
660
|
+
*
|
|
661
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
662
|
+
*
|
|
663
|
+
* Currently supported features:
|
|
664
|
+
* * `initial`
|
|
665
|
+
* * `animate`
|
|
666
|
+
* * `transition`
|
|
667
|
+
* * `whileTap`
|
|
668
|
+
*
|
|
669
|
+
* ```svelte
|
|
670
|
+
* <motion.li
|
|
671
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
672
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
673
|
+
* transition={{ duration: 0.3 }}
|
|
674
|
+
* >
|
|
675
|
+
* Content
|
|
676
|
+
* </motion.li>
|
|
677
|
+
* ```
|
|
678
|
+
*
|
|
679
|
+
* Note: Some motion features are still under development.
|
|
680
|
+
* Check documentation for latest updates.
|
|
681
|
+
*/
|
|
82
682
|
li: typeof Li;
|
|
683
|
+
/**
|
|
684
|
+
* A motion-enhanced main element with animation capabilities.
|
|
685
|
+
*
|
|
686
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
687
|
+
*
|
|
688
|
+
* Currently supported features:
|
|
689
|
+
* * `initial`
|
|
690
|
+
* * `animate`
|
|
691
|
+
* * `transition`
|
|
692
|
+
* * `whileTap`
|
|
693
|
+
*
|
|
694
|
+
* ```svelte
|
|
695
|
+
* <motion.main
|
|
696
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
697
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
698
|
+
* transition={{ duration: 0.3 }}
|
|
699
|
+
* >
|
|
700
|
+
* Content
|
|
701
|
+
* </motion.main>
|
|
702
|
+
* ```
|
|
703
|
+
*
|
|
704
|
+
* Note: Some motion features are still under development.
|
|
705
|
+
* Check documentation for latest updates.
|
|
706
|
+
*/
|
|
83
707
|
main: typeof Main;
|
|
708
|
+
/**
|
|
709
|
+
* A motion-enhanced nav element with animation capabilities.
|
|
710
|
+
*
|
|
711
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
712
|
+
*
|
|
713
|
+
* Currently supported features:
|
|
714
|
+
* * `initial`
|
|
715
|
+
* * `animate`
|
|
716
|
+
* * `transition`
|
|
717
|
+
* * `whileTap`
|
|
718
|
+
*
|
|
719
|
+
* ```svelte
|
|
720
|
+
* <motion.nav
|
|
721
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
722
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
723
|
+
* transition={{ duration: 0.3 }}
|
|
724
|
+
* >
|
|
725
|
+
* Content
|
|
726
|
+
* </motion.nav>
|
|
727
|
+
* ```
|
|
728
|
+
*
|
|
729
|
+
* Note: Some motion features are still under development.
|
|
730
|
+
* Check documentation for latest updates.
|
|
731
|
+
*/
|
|
84
732
|
nav: typeof Nav;
|
|
733
|
+
/**
|
|
734
|
+
* A motion-enhanced ol element with animation capabilities.
|
|
735
|
+
*
|
|
736
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
737
|
+
*
|
|
738
|
+
* Currently supported features:
|
|
739
|
+
* * `initial`
|
|
740
|
+
* * `animate`
|
|
741
|
+
* * `transition`
|
|
742
|
+
* * `whileTap`
|
|
743
|
+
*
|
|
744
|
+
* ```svelte
|
|
745
|
+
* <motion.ol
|
|
746
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
747
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
748
|
+
* transition={{ duration: 0.3 }}
|
|
749
|
+
* >
|
|
750
|
+
* Content
|
|
751
|
+
* </motion.ol>
|
|
752
|
+
* ```
|
|
753
|
+
*
|
|
754
|
+
* Note: Some motion features are still under development.
|
|
755
|
+
* Check documentation for latest updates.
|
|
756
|
+
*/
|
|
85
757
|
ol: typeof Ol;
|
|
758
|
+
/**
|
|
759
|
+
* A motion-enhanced option element with animation capabilities.
|
|
760
|
+
*
|
|
761
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
762
|
+
*
|
|
763
|
+
* Currently supported features:
|
|
764
|
+
* * `initial`
|
|
765
|
+
* * `animate`
|
|
766
|
+
* * `transition`
|
|
767
|
+
* * `whileTap`
|
|
768
|
+
*
|
|
769
|
+
* ```svelte
|
|
770
|
+
* <motion.option
|
|
771
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
772
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
773
|
+
* transition={{ duration: 0.3 }}
|
|
774
|
+
* >
|
|
775
|
+
* Content
|
|
776
|
+
* </motion.option>
|
|
777
|
+
* ```
|
|
778
|
+
*
|
|
779
|
+
* Note: Some motion features are still under development.
|
|
780
|
+
* Check documentation for latest updates.
|
|
781
|
+
*/
|
|
86
782
|
option: typeof Option;
|
|
783
|
+
/**
|
|
784
|
+
* A motion-enhanced p element with animation capabilities.
|
|
785
|
+
*
|
|
786
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
787
|
+
*
|
|
788
|
+
* Currently supported features:
|
|
789
|
+
* * `initial`
|
|
790
|
+
* * `animate`
|
|
791
|
+
* * `transition`
|
|
792
|
+
* * `whileTap`
|
|
793
|
+
*
|
|
794
|
+
* ```svelte
|
|
795
|
+
* <motion.p
|
|
796
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
797
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
798
|
+
* transition={{ duration: 0.3 }}
|
|
799
|
+
* >
|
|
800
|
+
* Content
|
|
801
|
+
* </motion.p>
|
|
802
|
+
* ```
|
|
803
|
+
*
|
|
804
|
+
* Note: Some motion features are still under development.
|
|
805
|
+
* Check documentation for latest updates.
|
|
806
|
+
*/
|
|
87
807
|
p: typeof P;
|
|
808
|
+
/**
|
|
809
|
+
* A motion-enhanced pre element with animation capabilities.
|
|
810
|
+
*
|
|
811
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
812
|
+
*
|
|
813
|
+
* Currently supported features:
|
|
814
|
+
* * `initial`
|
|
815
|
+
* * `animate`
|
|
816
|
+
* * `transition`
|
|
817
|
+
* * `whileTap`
|
|
818
|
+
*
|
|
819
|
+
* ```svelte
|
|
820
|
+
* <motion.pre
|
|
821
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
822
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
823
|
+
* transition={{ duration: 0.3 }}
|
|
824
|
+
* >
|
|
825
|
+
* Content
|
|
826
|
+
* </motion.pre>
|
|
827
|
+
* ```
|
|
828
|
+
*
|
|
829
|
+
* Note: Some motion features are still under development.
|
|
830
|
+
* Check documentation for latest updates.
|
|
831
|
+
*/
|
|
88
832
|
pre: typeof Pre;
|
|
833
|
+
/**
|
|
834
|
+
* A motion-enhanced section element with animation capabilities.
|
|
835
|
+
*
|
|
836
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
837
|
+
*
|
|
838
|
+
* Currently supported features:
|
|
839
|
+
* * `initial`
|
|
840
|
+
* * `animate`
|
|
841
|
+
* * `transition`
|
|
842
|
+
* * `whileTap`
|
|
843
|
+
*
|
|
844
|
+
* ```svelte
|
|
845
|
+
* <motion.section
|
|
846
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
847
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
848
|
+
* transition={{ duration: 0.3 }}
|
|
849
|
+
* >
|
|
850
|
+
* Content
|
|
851
|
+
* </motion.section>
|
|
852
|
+
* ```
|
|
853
|
+
*
|
|
854
|
+
* Note: Some motion features are still under development.
|
|
855
|
+
* Check documentation for latest updates.
|
|
856
|
+
*/
|
|
89
857
|
section: typeof Section;
|
|
858
|
+
/**
|
|
859
|
+
* A motion-enhanced select element with animation capabilities.
|
|
860
|
+
*
|
|
861
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
862
|
+
*
|
|
863
|
+
* Currently supported features:
|
|
864
|
+
* * `initial`
|
|
865
|
+
* * `animate`
|
|
866
|
+
* * `transition`
|
|
867
|
+
* * `whileTap`
|
|
868
|
+
*
|
|
869
|
+
* ```svelte
|
|
870
|
+
* <motion.select
|
|
871
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
872
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
873
|
+
* transition={{ duration: 0.3 }}
|
|
874
|
+
* >
|
|
875
|
+
* Content
|
|
876
|
+
* </motion.select>
|
|
877
|
+
* ```
|
|
878
|
+
*
|
|
879
|
+
* Note: Some motion features are still under development.
|
|
880
|
+
* Check documentation for latest updates.
|
|
881
|
+
*/
|
|
90
882
|
select: typeof Select;
|
|
883
|
+
/**
|
|
884
|
+
* A motion-enhanced span element with animation capabilities.
|
|
885
|
+
*
|
|
886
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
887
|
+
*
|
|
888
|
+
* Currently supported features:
|
|
889
|
+
* * `initial`
|
|
890
|
+
* * `animate`
|
|
891
|
+
* * `transition`
|
|
892
|
+
* * `whileTap`
|
|
893
|
+
*
|
|
894
|
+
* ```svelte
|
|
895
|
+
* <motion.span
|
|
896
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
897
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
898
|
+
* transition={{ duration: 0.3 }}
|
|
899
|
+
* >
|
|
900
|
+
* Content
|
|
901
|
+
* </motion.span>
|
|
902
|
+
* ```
|
|
903
|
+
*
|
|
904
|
+
* Note: Some motion features are still under development.
|
|
905
|
+
* Check documentation for latest updates.
|
|
906
|
+
*/
|
|
91
907
|
span: typeof Span;
|
|
908
|
+
/**
|
|
909
|
+
* A motion-enhanced table element with animation capabilities.
|
|
910
|
+
*
|
|
911
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
912
|
+
*
|
|
913
|
+
* Currently supported features:
|
|
914
|
+
* * `initial`
|
|
915
|
+
* * `animate`
|
|
916
|
+
* * `transition`
|
|
917
|
+
* * `whileTap`
|
|
918
|
+
*
|
|
919
|
+
* ```svelte
|
|
920
|
+
* <motion.table
|
|
921
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
922
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
923
|
+
* transition={{ duration: 0.3 }}
|
|
924
|
+
* >
|
|
925
|
+
* Content
|
|
926
|
+
* </motion.table>
|
|
927
|
+
* ```
|
|
928
|
+
*
|
|
929
|
+
* Note: Some motion features are still under development.
|
|
930
|
+
* Check documentation for latest updates.
|
|
931
|
+
*/
|
|
92
932
|
table: typeof Table;
|
|
933
|
+
/**
|
|
934
|
+
* A motion-enhanced tbody element with animation capabilities.
|
|
935
|
+
*
|
|
936
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
937
|
+
*
|
|
938
|
+
* Currently supported features:
|
|
939
|
+
* * `initial`
|
|
940
|
+
* * `animate`
|
|
941
|
+
* * `transition`
|
|
942
|
+
* * `whileTap`
|
|
943
|
+
*
|
|
944
|
+
* ```svelte
|
|
945
|
+
* <motion.tbody
|
|
946
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
947
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
948
|
+
* transition={{ duration: 0.3 }}
|
|
949
|
+
* >
|
|
950
|
+
* Content
|
|
951
|
+
* </motion.tbody>
|
|
952
|
+
* ```
|
|
953
|
+
*
|
|
954
|
+
* Note: Some motion features are still under development.
|
|
955
|
+
* Check documentation for latest updates.
|
|
956
|
+
*/
|
|
93
957
|
tbody: typeof Tbody;
|
|
958
|
+
/**
|
|
959
|
+
* A motion-enhanced td element with animation capabilities.
|
|
960
|
+
*
|
|
961
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
962
|
+
*
|
|
963
|
+
* Currently supported features:
|
|
964
|
+
* * `initial`
|
|
965
|
+
* * `animate`
|
|
966
|
+
* * `transition`
|
|
967
|
+
* * `whileTap`
|
|
968
|
+
*
|
|
969
|
+
* ```svelte
|
|
970
|
+
* <motion.td
|
|
971
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
972
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
973
|
+
* transition={{ duration: 0.3 }}
|
|
974
|
+
* >
|
|
975
|
+
* Content
|
|
976
|
+
* </motion.td>
|
|
977
|
+
* ```
|
|
978
|
+
*
|
|
979
|
+
* Note: Some motion features are still under development.
|
|
980
|
+
* Check documentation for latest updates.
|
|
981
|
+
*/
|
|
94
982
|
td: typeof Td;
|
|
983
|
+
/**
|
|
984
|
+
* A motion-enhanced textarea element with animation capabilities.
|
|
985
|
+
*
|
|
986
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
987
|
+
*
|
|
988
|
+
* Currently supported features:
|
|
989
|
+
* * `initial`
|
|
990
|
+
* * `animate`
|
|
991
|
+
* * `transition`
|
|
992
|
+
* * `whileTap`
|
|
993
|
+
*
|
|
994
|
+
* ```svelte
|
|
995
|
+
* <motion.textarea
|
|
996
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
997
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
998
|
+
* transition={{ duration: 0.3 }}
|
|
999
|
+
* >
|
|
1000
|
+
* Content
|
|
1001
|
+
* </motion.textarea>
|
|
1002
|
+
* ```
|
|
1003
|
+
*
|
|
1004
|
+
* Note: Some motion features are still under development.
|
|
1005
|
+
* Check documentation for latest updates.
|
|
1006
|
+
*/
|
|
95
1007
|
textarea: typeof Textarea;
|
|
1008
|
+
/**
|
|
1009
|
+
* A motion-enhanced tfoot element with animation capabilities.
|
|
1010
|
+
*
|
|
1011
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1012
|
+
*
|
|
1013
|
+
* Currently supported features:
|
|
1014
|
+
* * `initial`
|
|
1015
|
+
* * `animate`
|
|
1016
|
+
* * `transition`
|
|
1017
|
+
* * `whileTap`
|
|
1018
|
+
*
|
|
1019
|
+
* ```svelte
|
|
1020
|
+
* <motion.tfoot
|
|
1021
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1022
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1023
|
+
* transition={{ duration: 0.3 }}
|
|
1024
|
+
* >
|
|
1025
|
+
* Content
|
|
1026
|
+
* </motion.tfoot>
|
|
1027
|
+
* ```
|
|
1028
|
+
*
|
|
1029
|
+
* Note: Some motion features are still under development.
|
|
1030
|
+
* Check documentation for latest updates.
|
|
1031
|
+
*/
|
|
96
1032
|
tfoot: typeof Tfoot;
|
|
1033
|
+
/**
|
|
1034
|
+
* A motion-enhanced th element with animation capabilities.
|
|
1035
|
+
*
|
|
1036
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1037
|
+
*
|
|
1038
|
+
* Currently supported features:
|
|
1039
|
+
* * `initial`
|
|
1040
|
+
* * `animate`
|
|
1041
|
+
* * `transition`
|
|
1042
|
+
* * `whileTap`
|
|
1043
|
+
*
|
|
1044
|
+
* ```svelte
|
|
1045
|
+
* <motion.th
|
|
1046
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1047
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1048
|
+
* transition={{ duration: 0.3 }}
|
|
1049
|
+
* >
|
|
1050
|
+
* Content
|
|
1051
|
+
* </motion.th>
|
|
1052
|
+
* ```
|
|
1053
|
+
*
|
|
1054
|
+
* Note: Some motion features are still under development.
|
|
1055
|
+
* Check documentation for latest updates.
|
|
1056
|
+
*/
|
|
97
1057
|
th: typeof Th;
|
|
1058
|
+
/**
|
|
1059
|
+
* A motion-enhanced thead element with animation capabilities.
|
|
1060
|
+
*
|
|
1061
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1062
|
+
*
|
|
1063
|
+
* Currently supported features:
|
|
1064
|
+
* * `initial`
|
|
1065
|
+
* * `animate`
|
|
1066
|
+
* * `transition`
|
|
1067
|
+
* * `whileTap`
|
|
1068
|
+
*
|
|
1069
|
+
* ```svelte
|
|
1070
|
+
* <motion.thead
|
|
1071
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1072
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1073
|
+
* transition={{ duration: 0.3 }}
|
|
1074
|
+
* >
|
|
1075
|
+
* Content
|
|
1076
|
+
* </motion.thead>
|
|
1077
|
+
* ```
|
|
1078
|
+
*
|
|
1079
|
+
* Note: Some motion features are still under development.
|
|
1080
|
+
* Check documentation for latest updates.
|
|
1081
|
+
*/
|
|
98
1082
|
thead: typeof Thead;
|
|
1083
|
+
/**
|
|
1084
|
+
* A motion-enhanced tr element with animation capabilities.
|
|
1085
|
+
*
|
|
1086
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1087
|
+
*
|
|
1088
|
+
* Currently supported features:
|
|
1089
|
+
* * `initial`
|
|
1090
|
+
* * `animate`
|
|
1091
|
+
* * `transition`
|
|
1092
|
+
* * `whileTap`
|
|
1093
|
+
*
|
|
1094
|
+
* ```svelte
|
|
1095
|
+
* <motion.tr
|
|
1096
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1097
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1098
|
+
* transition={{ duration: 0.3 }}
|
|
1099
|
+
* >
|
|
1100
|
+
* Content
|
|
1101
|
+
* </motion.tr>
|
|
1102
|
+
* ```
|
|
1103
|
+
*
|
|
1104
|
+
* Note: Some motion features are still under development.
|
|
1105
|
+
* Check documentation for latest updates.
|
|
1106
|
+
*/
|
|
99
1107
|
tr: typeof Tr;
|
|
1108
|
+
/**
|
|
1109
|
+
* A motion-enhanced ul element with animation capabilities.
|
|
1110
|
+
*
|
|
1111
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1112
|
+
*
|
|
1113
|
+
* Currently supported features:
|
|
1114
|
+
* * `initial`
|
|
1115
|
+
* * `animate`
|
|
1116
|
+
* * `transition`
|
|
1117
|
+
* * `whileTap`
|
|
1118
|
+
*
|
|
1119
|
+
* ```svelte
|
|
1120
|
+
* <motion.ul
|
|
1121
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1122
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1123
|
+
* transition={{ duration: 0.3 }}
|
|
1124
|
+
* >
|
|
1125
|
+
* Content
|
|
1126
|
+
* </motion.ul>
|
|
1127
|
+
* ```
|
|
1128
|
+
*
|
|
1129
|
+
* Note: Some motion features are still under development.
|
|
1130
|
+
* Check documentation for latest updates.
|
|
1131
|
+
*/
|
|
100
1132
|
ul: typeof Ul;
|
|
1133
|
+
/**
|
|
1134
|
+
* A motion-enhanced area element with animation capabilities.
|
|
1135
|
+
*
|
|
1136
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1137
|
+
*
|
|
1138
|
+
* Currently supported features:
|
|
1139
|
+
* * `initial`
|
|
1140
|
+
* * `animate`
|
|
1141
|
+
* * `transition`
|
|
1142
|
+
* * `whileTap`
|
|
1143
|
+
*
|
|
1144
|
+
* ```svelte
|
|
1145
|
+
* <motion.area
|
|
1146
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1147
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1148
|
+
* transition={{ duration: 0.3 }}
|
|
1149
|
+
* />
|
|
1150
|
+
* ```
|
|
1151
|
+
*
|
|
1152
|
+
* Note: Some motion features are still under development.
|
|
1153
|
+
* Check documentation for latest updates.
|
|
1154
|
+
*/
|
|
101
1155
|
area: typeof Area;
|
|
1156
|
+
/**
|
|
1157
|
+
* A motion-enhanced base element with animation capabilities.
|
|
1158
|
+
*
|
|
1159
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1160
|
+
*
|
|
1161
|
+
* Currently supported features:
|
|
1162
|
+
* * `initial`
|
|
1163
|
+
* * `animate`
|
|
1164
|
+
* * `transition`
|
|
1165
|
+
* * `whileTap`
|
|
1166
|
+
*
|
|
1167
|
+
* ```svelte
|
|
1168
|
+
* <motion.base
|
|
1169
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1170
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1171
|
+
* transition={{ duration: 0.3 }}
|
|
1172
|
+
* />
|
|
1173
|
+
* ```
|
|
1174
|
+
*
|
|
1175
|
+
* Note: Some motion features are still under development.
|
|
1176
|
+
* Check documentation for latest updates.
|
|
1177
|
+
*/
|
|
102
1178
|
base: typeof Base;
|
|
1179
|
+
/**
|
|
1180
|
+
* A motion-enhanced br element with animation capabilities.
|
|
1181
|
+
*
|
|
1182
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1183
|
+
*
|
|
1184
|
+
* Currently supported features:
|
|
1185
|
+
* * `initial`
|
|
1186
|
+
* * `animate`
|
|
1187
|
+
* * `transition`
|
|
1188
|
+
* * `whileTap`
|
|
1189
|
+
*
|
|
1190
|
+
* ```svelte
|
|
1191
|
+
* <motion.br
|
|
1192
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1193
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1194
|
+
* transition={{ duration: 0.3 }}
|
|
1195
|
+
* />
|
|
1196
|
+
* ```
|
|
1197
|
+
*
|
|
1198
|
+
* Note: Some motion features are still under development.
|
|
1199
|
+
* Check documentation for latest updates.
|
|
1200
|
+
*/
|
|
103
1201
|
br: typeof Br;
|
|
1202
|
+
/**
|
|
1203
|
+
* A motion-enhanced col element with animation capabilities.
|
|
1204
|
+
*
|
|
1205
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1206
|
+
*
|
|
1207
|
+
* Currently supported features:
|
|
1208
|
+
* * `initial`
|
|
1209
|
+
* * `animate`
|
|
1210
|
+
* * `transition`
|
|
1211
|
+
* * `whileTap`
|
|
1212
|
+
*
|
|
1213
|
+
* ```svelte
|
|
1214
|
+
* <motion.col
|
|
1215
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1216
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1217
|
+
* transition={{ duration: 0.3 }}
|
|
1218
|
+
* />
|
|
1219
|
+
* ```
|
|
1220
|
+
*
|
|
1221
|
+
* Note: Some motion features are still under development.
|
|
1222
|
+
* Check documentation for latest updates.
|
|
1223
|
+
*/
|
|
104
1224
|
col: typeof Col;
|
|
1225
|
+
/**
|
|
1226
|
+
* A motion-enhanced embed element with animation capabilities.
|
|
1227
|
+
*
|
|
1228
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1229
|
+
*
|
|
1230
|
+
* Currently supported features:
|
|
1231
|
+
* * `initial`
|
|
1232
|
+
* * `animate`
|
|
1233
|
+
* * `transition`
|
|
1234
|
+
* * `whileTap`
|
|
1235
|
+
*
|
|
1236
|
+
* ```svelte
|
|
1237
|
+
* <motion.embed
|
|
1238
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1239
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1240
|
+
* transition={{ duration: 0.3 }}
|
|
1241
|
+
* />
|
|
1242
|
+
* ```
|
|
1243
|
+
*
|
|
1244
|
+
* Note: Some motion features are still under development.
|
|
1245
|
+
* Check documentation for latest updates.
|
|
1246
|
+
*/
|
|
105
1247
|
embed: typeof Embed;
|
|
1248
|
+
/**
|
|
1249
|
+
* A motion-enhanced hr element with animation capabilities.
|
|
1250
|
+
*
|
|
1251
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1252
|
+
*
|
|
1253
|
+
* Currently supported features:
|
|
1254
|
+
* * `initial`
|
|
1255
|
+
* * `animate`
|
|
1256
|
+
* * `transition`
|
|
1257
|
+
* * `whileTap`
|
|
1258
|
+
*
|
|
1259
|
+
* ```svelte
|
|
1260
|
+
* <motion.hr
|
|
1261
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1262
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1263
|
+
* transition={{ duration: 0.3 }}
|
|
1264
|
+
* />
|
|
1265
|
+
* ```
|
|
1266
|
+
*
|
|
1267
|
+
* Note: Some motion features are still under development.
|
|
1268
|
+
* Check documentation for latest updates.
|
|
1269
|
+
*/
|
|
106
1270
|
hr: typeof Hr;
|
|
1271
|
+
/**
|
|
1272
|
+
* A motion-enhanced img element with animation capabilities.
|
|
1273
|
+
*
|
|
1274
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1275
|
+
*
|
|
1276
|
+
* Currently supported features:
|
|
1277
|
+
* * `initial`
|
|
1278
|
+
* * `animate`
|
|
1279
|
+
* * `transition`
|
|
1280
|
+
* * `whileTap`
|
|
1281
|
+
*
|
|
1282
|
+
* ```svelte
|
|
1283
|
+
* <motion.img
|
|
1284
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1285
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1286
|
+
* transition={{ duration: 0.3 }}
|
|
1287
|
+
* />
|
|
1288
|
+
* ```
|
|
1289
|
+
*
|
|
1290
|
+
* Note: Some motion features are still under development.
|
|
1291
|
+
* Check documentation for latest updates.
|
|
1292
|
+
*/
|
|
107
1293
|
img: typeof Img;
|
|
1294
|
+
/**
|
|
1295
|
+
* A motion-enhanced input element with animation capabilities.
|
|
1296
|
+
*
|
|
1297
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1298
|
+
*
|
|
1299
|
+
* Currently supported features:
|
|
1300
|
+
* * `initial`
|
|
1301
|
+
* * `animate`
|
|
1302
|
+
* * `transition`
|
|
1303
|
+
* * `whileTap`
|
|
1304
|
+
*
|
|
1305
|
+
* ```svelte
|
|
1306
|
+
* <motion.input
|
|
1307
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1308
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1309
|
+
* transition={{ duration: 0.3 }}
|
|
1310
|
+
* />
|
|
1311
|
+
* ```
|
|
1312
|
+
*
|
|
1313
|
+
* Note: Some motion features are still under development.
|
|
1314
|
+
* Check documentation for latest updates.
|
|
1315
|
+
*/
|
|
108
1316
|
input: typeof Input;
|
|
1317
|
+
/**
|
|
1318
|
+
* A motion-enhanced param element with animation capabilities.
|
|
1319
|
+
*
|
|
1320
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1321
|
+
*
|
|
1322
|
+
* Currently supported features:
|
|
1323
|
+
* * `initial`
|
|
1324
|
+
* * `animate`
|
|
1325
|
+
* * `transition`
|
|
1326
|
+
* * `whileTap`
|
|
1327
|
+
*
|
|
1328
|
+
* ```svelte
|
|
1329
|
+
* <motion.param
|
|
1330
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1331
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1332
|
+
* transition={{ duration: 0.3 }}
|
|
1333
|
+
* />
|
|
1334
|
+
* ```
|
|
1335
|
+
*
|
|
1336
|
+
* Note: Some motion features are still under development.
|
|
1337
|
+
* Check documentation for latest updates.
|
|
1338
|
+
*/
|
|
109
1339
|
param: typeof Param;
|
|
1340
|
+
/**
|
|
1341
|
+
* A motion-enhanced source element with animation capabilities.
|
|
1342
|
+
*
|
|
1343
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1344
|
+
*
|
|
1345
|
+
* Currently supported features:
|
|
1346
|
+
* * `initial`
|
|
1347
|
+
* * `animate`
|
|
1348
|
+
* * `transition`
|
|
1349
|
+
* * `whileTap`
|
|
1350
|
+
*
|
|
1351
|
+
* ```svelte
|
|
1352
|
+
* <motion.source
|
|
1353
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1354
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1355
|
+
* transition={{ duration: 0.3 }}
|
|
1356
|
+
* />
|
|
1357
|
+
* ```
|
|
1358
|
+
*
|
|
1359
|
+
* Note: Some motion features are still under development.
|
|
1360
|
+
* Check documentation for latest updates.
|
|
1361
|
+
*/
|
|
110
1362
|
source: typeof Source;
|
|
1363
|
+
/**
|
|
1364
|
+
* A motion-enhanced track element with animation capabilities.
|
|
1365
|
+
*
|
|
1366
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1367
|
+
*
|
|
1368
|
+
* Currently supported features:
|
|
1369
|
+
* * `initial`
|
|
1370
|
+
* * `animate`
|
|
1371
|
+
* * `transition`
|
|
1372
|
+
* * `whileTap`
|
|
1373
|
+
*
|
|
1374
|
+
* ```svelte
|
|
1375
|
+
* <motion.track
|
|
1376
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1377
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1378
|
+
* transition={{ duration: 0.3 }}
|
|
1379
|
+
* />
|
|
1380
|
+
* ```
|
|
1381
|
+
*
|
|
1382
|
+
* Note: Some motion features are still under development.
|
|
1383
|
+
* Check documentation for latest updates.
|
|
1384
|
+
*/
|
|
111
1385
|
track: typeof Track;
|
|
1386
|
+
/**
|
|
1387
|
+
* A motion-enhanced wbr element with animation capabilities.
|
|
1388
|
+
*
|
|
1389
|
+
* [Motion Documentation](https://motion.dev/docs/react-motion-component)
|
|
1390
|
+
*
|
|
1391
|
+
* Currently supported features:
|
|
1392
|
+
* * `initial`
|
|
1393
|
+
* * `animate`
|
|
1394
|
+
* * `transition`
|
|
1395
|
+
* * `whileTap`
|
|
1396
|
+
*
|
|
1397
|
+
* ```svelte
|
|
1398
|
+
* <motion.wbr
|
|
1399
|
+
* initial={{ opacity: 0, scale: 0.8 }}
|
|
1400
|
+
* animate={{ opacity: 1, scale: 1 }}
|
|
1401
|
+
* transition={{ duration: 0.3 }}
|
|
1402
|
+
* />
|
|
1403
|
+
* ```
|
|
1404
|
+
*
|
|
1405
|
+
* Note: Some motion features are still under development.
|
|
1406
|
+
* Check documentation for latest updates.
|
|
1407
|
+
*/
|
|
112
1408
|
wbr: typeof Wbr;
|
|
113
1409
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,23 +1,89 @@
|
|
|
1
1
|
import type { AnimationOptions, DOMKeyframesDefinition } from 'motion';
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
|
+
/**
|
|
4
|
+
* Initial animation properties for a motion component.
|
|
5
|
+
* @example
|
|
6
|
+
* ```svelte
|
|
7
|
+
* <motion.div initial={{ opacity: 0, scale: 0 }} />
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
3
10
|
export type MotionInitial = DOMKeyframesDefinition | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Target animation properties for a motion component.
|
|
13
|
+
* @example
|
|
14
|
+
* ```svelte
|
|
15
|
+
* <motion.div animate={{ opacity: 1, scale: 1 }} />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
4
18
|
export type MotionAnimate = DOMKeyframesDefinition | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Animation transition configuration.
|
|
21
|
+
* @example
|
|
22
|
+
* ```svelte
|
|
23
|
+
* <motion.div
|
|
24
|
+
* transition={{
|
|
25
|
+
* duration: 0.4,
|
|
26
|
+
* scale: {
|
|
27
|
+
* type: 'spring',
|
|
28
|
+
* visualDuration: 0.4,
|
|
29
|
+
* bounce: 0.5
|
|
30
|
+
* }
|
|
31
|
+
* }}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
5
35
|
export type MotionTransition = AnimationOptions | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Animation properties for tap/click interactions.
|
|
38
|
+
* @example
|
|
39
|
+
* ```svelte
|
|
40
|
+
* <motion.button whileTap={{ scale: 0.95 }} />
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
6
43
|
export type MotionWhileTap = DOMKeyframesDefinition | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Base motion props shared by all motion components.
|
|
46
|
+
*/
|
|
7
47
|
export type MotionProps = {
|
|
48
|
+
/** Initial state of the animation */
|
|
8
49
|
initial?: MotionInitial;
|
|
50
|
+
/** Target state of the animation */
|
|
9
51
|
animate?: MotionAnimate;
|
|
52
|
+
/** Animation configuration */
|
|
10
53
|
transition?: MotionTransition;
|
|
54
|
+
/** Tap/click interaction animation */
|
|
11
55
|
whileTap?: MotionWhileTap;
|
|
56
|
+
/** Inline styles */
|
|
12
57
|
style?: string;
|
|
58
|
+
/** CSS classes */
|
|
13
59
|
class?: string;
|
|
14
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Props for regular HTML elements that can have children
|
|
63
|
+
* @example
|
|
64
|
+
* ```svelte
|
|
65
|
+
* <motion.div initial={{ opacity: 0 }}>
|
|
66
|
+
* Content goes here
|
|
67
|
+
* </motion.div>
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
15
70
|
export type HTMLElementProps = MotionProps & {
|
|
71
|
+
/** Child content rendered inside the element */
|
|
16
72
|
children?: Snippet;
|
|
73
|
+
/** Additional HTML attributes */
|
|
17
74
|
[key: string]: unknown;
|
|
18
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Props for void HTML elements that cannot have children
|
|
78
|
+
* @example
|
|
79
|
+
* ```svelte
|
|
80
|
+
* <motion.img src="image.jpg" initial={{ scale: 0 }} animate={{ scale: 1 }} />
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
19
83
|
export type HTMLVoidElementProps = MotionProps & {
|
|
84
|
+
/** Additional HTML attributes */
|
|
20
85
|
[key: string]: unknown;
|
|
21
86
|
} & {
|
|
87
|
+
/** Void elements cannot have children */
|
|
22
88
|
children?: never;
|
|
23
89
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanspeak/svelte-motion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "A lightweight animation library for Svelte 5 that provides smooth, hardware-accelerated animations. Features include spring physics, custom easing, and fluid transitions. Built on top of the motion library, it offers a simple API for creating complex animations with minimal code. Perfect for interactive UIs, micro-interactions, and engaging user experiences.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|