react-awesome-reveal 4.2.4 → 4.2.6
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/Reveal.d.ts +69 -0
- package/dist/animations/attention_seekers/bounce.d.ts +5 -0
- package/dist/animations/attention_seekers/flash.d.ts +5 -0
- package/dist/animations/attention_seekers/headShake.d.ts +5 -0
- package/dist/animations/attention_seekers/heartBeat.d.ts +5 -0
- package/dist/animations/attention_seekers/index.d.ts +13 -0
- package/dist/animations/attention_seekers/jello.d.ts +5 -0
- package/dist/animations/attention_seekers/pulse.d.ts +5 -0
- package/dist/animations/attention_seekers/rubberBand.d.ts +5 -0
- package/dist/animations/attention_seekers/shake.d.ts +5 -0
- package/dist/animations/attention_seekers/shakeX.d.ts +5 -0
- package/dist/animations/attention_seekers/shakeY.d.ts +5 -0
- package/dist/animations/attention_seekers/swing.d.ts +5 -0
- package/dist/animations/attention_seekers/tada.d.ts +5 -0
- package/dist/animations/attention_seekers/wobble.d.ts +5 -0
- package/dist/animations/bouncing_entrances/bounceIn.d.ts +5 -0
- package/dist/animations/bouncing_entrances/bounceInDown.d.ts +5 -0
- package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +5 -0
- package/dist/animations/bouncing_entrances/bounceInRight.d.ts +5 -0
- package/dist/animations/bouncing_entrances/bounceInUp.d.ts +5 -0
- package/dist/animations/bouncing_entrances/index.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOut.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutDown.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutRight.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutUp.d.ts +5 -0
- package/dist/animations/bouncing_exits/index.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeIn.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDown.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDownBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRightBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUp.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUpBig.d.ts +5 -0
- package/dist/animations/fading_entrances/index.d.ts +13 -0
- package/dist/animations/fading_exits/fadeOut.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutDown.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutDownBig.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutRightBig.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutUp.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutUpBig.d.ts +5 -0
- package/dist/animations/fading_exits/index.d.ts +13 -0
- package/dist/animations/flippers/flip.d.ts +5 -0
- package/dist/animations/flippers/flipInX.d.ts +5 -0
- package/dist/animations/flippers/flipInY.d.ts +5 -0
- package/dist/animations/flippers/flipOutX.d.ts +5 -0
- package/dist/animations/flippers/flipOutY.d.ts +5 -0
- package/dist/animations/flippers/index.d.ts +5 -0
- package/dist/animations/rotating_entrances/index.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateIn.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +5 -0
- package/dist/animations/rotating_exits/index.d.ts +5 -0
- package/dist/animations/rotating_exits/rotateOut.d.ts +5 -0
- package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +5 -0
- package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +5 -0
- package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +5 -0
- package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +5 -0
- package/dist/animations/sliding_entrances/index.d.ts +4 -0
- package/dist/animations/sliding_entrances/slideInDown.d.ts +5 -0
- package/dist/animations/sliding_entrances/slideInLeft.d.ts +5 -0
- package/dist/animations/sliding_entrances/slideInRight.d.ts +5 -0
- package/dist/animations/sliding_entrances/slideInUp.d.ts +5 -0
- package/dist/animations/sliding_exits/index.d.ts +4 -0
- package/dist/animations/sliding_exits/slideOutDown.d.ts +5 -0
- package/dist/animations/sliding_exits/slideOutLeft.d.ts +5 -0
- package/dist/animations/sliding_exits/slideOutRight.d.ts +5 -0
- package/dist/animations/sliding_exits/slideOutUp.d.ts +5 -0
- package/dist/animations/specials/hinge.d.ts +5 -0
- package/dist/animations/specials/index.d.ts +4 -0
- package/dist/animations/specials/jackInTheBox.d.ts +5 -0
- package/dist/animations/specials/rollIn.d.ts +5 -0
- package/dist/animations/specials/rollOut.d.ts +5 -0
- package/dist/animations/zooming_entrances/index.d.ts +5 -0
- package/dist/animations/zooming_entrances/zoomIn.d.ts +5 -0
- package/dist/animations/zooming_entrances/zoomInDown.d.ts +5 -0
- package/dist/animations/zooming_entrances/zoomInLeft.d.ts +5 -0
- package/dist/animations/zooming_entrances/zoomInRight.d.ts +5 -0
- package/dist/animations/zooming_entrances/zoomInUp.d.ts +5 -0
- package/dist/animations/zooming_exits/index.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOut.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutDown.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutLeft.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutRight.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutUp.d.ts +5 -0
- package/dist/components/AttentionSeeker.d.ts +12 -0
- package/dist/components/Bounce.d.ts +17 -0
- package/dist/components/Fade.d.ts +22 -0
- package/dist/components/Flip.d.ts +17 -0
- package/dist/components/Hinge.d.ts +4 -0
- package/dist/components/JackInTheBox.d.ts +4 -0
- package/dist/components/Roll.d.ts +10 -0
- package/dist/components/Rotate.d.ts +17 -0
- package/dist/components/Slide.d.ts +17 -0
- package/dist/components/Zoom.d.ts +17 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/{index.mjs → index.cjs} +191 -408
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -191
- package/dist/index.js +177 -446
- package/dist/index.js.map +1 -1
- package/dist/utils/animations.d.ts +9 -0
- package/dist/utils/guards.d.ts +2 -0
- package/dist/utils/patterns.d.ts +2 -0
- package/package.json +16 -15
- package/dist/index.mjs.map +0 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import { useMemo as useMemo2 } from "react";
|
|
1
|
+
'use strict';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
const react = require('@emotion/react');
|
|
7
|
+
const react$1 = require('react');
|
|
8
|
+
const reactIntersectionObserver = require('react-intersection-observer');
|
|
9
|
+
const reactIs = require('react-is');
|
|
10
|
+
|
|
11
|
+
const bounce = react.keyframes`
|
|
7
12
|
from,
|
|
8
13
|
20%,
|
|
9
14
|
53%,
|
|
@@ -33,9 +38,7 @@ var bounce = keyframes`
|
|
|
33
38
|
}
|
|
34
39
|
`;
|
|
35
40
|
|
|
36
|
-
|
|
37
|
-
import { keyframes as keyframes2 } from "@emotion/react";
|
|
38
|
-
var flash = keyframes2`
|
|
41
|
+
const flash = react.keyframes`
|
|
39
42
|
from,
|
|
40
43
|
50%,
|
|
41
44
|
to {
|
|
@@ -48,9 +51,7 @@ var flash = keyframes2`
|
|
|
48
51
|
}
|
|
49
52
|
`;
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
import { keyframes as keyframes3 } from "@emotion/react";
|
|
53
|
-
var headShake = keyframes3`
|
|
54
|
+
const headShake = react.keyframes`
|
|
54
55
|
0% {
|
|
55
56
|
transform: translateX(0);
|
|
56
57
|
}
|
|
@@ -76,9 +77,7 @@ var headShake = keyframes3`
|
|
|
76
77
|
}
|
|
77
78
|
`;
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
import { keyframes as keyframes4 } from "@emotion/react";
|
|
81
|
-
var heartBeat = keyframes4`
|
|
80
|
+
const heartBeat = react.keyframes`
|
|
82
81
|
0% {
|
|
83
82
|
transform: scale(1);
|
|
84
83
|
}
|
|
@@ -100,9 +99,7 @@ var heartBeat = keyframes4`
|
|
|
100
99
|
}
|
|
101
100
|
`;
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
import { keyframes as keyframes5 } from "@emotion/react";
|
|
105
|
-
var jello = keyframes5`
|
|
102
|
+
const jello = react.keyframes`
|
|
106
103
|
from,
|
|
107
104
|
11.1%,
|
|
108
105
|
to {
|
|
@@ -138,9 +135,7 @@ var jello = keyframes5`
|
|
|
138
135
|
}
|
|
139
136
|
`;
|
|
140
137
|
|
|
141
|
-
|
|
142
|
-
import { keyframes as keyframes6 } from "@emotion/react";
|
|
143
|
-
var pulse = keyframes6`
|
|
138
|
+
const pulse = react.keyframes`
|
|
144
139
|
from {
|
|
145
140
|
transform: scale3d(1, 1, 1);
|
|
146
141
|
}
|
|
@@ -154,9 +149,7 @@ var pulse = keyframes6`
|
|
|
154
149
|
}
|
|
155
150
|
`;
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
import { keyframes as keyframes7 } from "@emotion/react";
|
|
159
|
-
var rubberBand = keyframes7`
|
|
152
|
+
const rubberBand = react.keyframes`
|
|
160
153
|
from {
|
|
161
154
|
transform: scale3d(1, 1, 1);
|
|
162
155
|
}
|
|
@@ -186,9 +179,7 @@ var rubberBand = keyframes7`
|
|
|
186
179
|
}
|
|
187
180
|
`;
|
|
188
181
|
|
|
189
|
-
|
|
190
|
-
import { keyframes as keyframes8 } from "@emotion/react";
|
|
191
|
-
var shake = keyframes8`
|
|
182
|
+
const shake = react.keyframes`
|
|
192
183
|
from,
|
|
193
184
|
to {
|
|
194
185
|
transform: translate3d(0, 0, 0);
|
|
@@ -210,9 +201,7 @@ var shake = keyframes8`
|
|
|
210
201
|
}
|
|
211
202
|
`;
|
|
212
203
|
|
|
213
|
-
|
|
214
|
-
import { keyframes as keyframes9 } from "@emotion/react";
|
|
215
|
-
var shakeX = keyframes9`
|
|
204
|
+
const shakeX = react.keyframes`
|
|
216
205
|
from,
|
|
217
206
|
to {
|
|
218
207
|
transform: translate3d(0, 0, 0);
|
|
@@ -234,9 +223,7 @@ var shakeX = keyframes9`
|
|
|
234
223
|
}
|
|
235
224
|
`;
|
|
236
225
|
|
|
237
|
-
|
|
238
|
-
import { keyframes as keyframes10 } from "@emotion/react";
|
|
239
|
-
var shakeY = keyframes10`
|
|
226
|
+
const shakeY = react.keyframes`
|
|
240
227
|
from,
|
|
241
228
|
to {
|
|
242
229
|
transform: translate3d(0, 0, 0);
|
|
@@ -258,9 +245,7 @@ var shakeY = keyframes10`
|
|
|
258
245
|
}
|
|
259
246
|
`;
|
|
260
247
|
|
|
261
|
-
|
|
262
|
-
import { keyframes as keyframes11 } from "@emotion/react";
|
|
263
|
-
var swing = keyframes11`
|
|
248
|
+
const swing = react.keyframes`
|
|
264
249
|
20% {
|
|
265
250
|
transform: rotate3d(0, 0, 1, 15deg);
|
|
266
251
|
}
|
|
@@ -282,9 +267,7 @@ var swing = keyframes11`
|
|
|
282
267
|
}
|
|
283
268
|
`;
|
|
284
269
|
|
|
285
|
-
|
|
286
|
-
import { keyframes as keyframes12 } from "@emotion/react";
|
|
287
|
-
var tada = keyframes12`
|
|
270
|
+
const tada = react.keyframes`
|
|
288
271
|
from {
|
|
289
272
|
transform: scale3d(1, 1, 1);
|
|
290
273
|
}
|
|
@@ -312,9 +295,7 @@ var tada = keyframes12`
|
|
|
312
295
|
}
|
|
313
296
|
`;
|
|
314
297
|
|
|
315
|
-
|
|
316
|
-
import { keyframes as keyframes13 } from "@emotion/react";
|
|
317
|
-
var wobble = keyframes13`
|
|
298
|
+
const wobble = react.keyframes`
|
|
318
299
|
from {
|
|
319
300
|
transform: translate3d(0, 0, 0);
|
|
320
301
|
}
|
|
@@ -344,15 +325,7 @@ var wobble = keyframes13`
|
|
|
344
325
|
}
|
|
345
326
|
`;
|
|
346
327
|
|
|
347
|
-
|
|
348
|
-
import { ClassNames } from "@emotion/react";
|
|
349
|
-
import { Children, isValidElement, useMemo } from "react";
|
|
350
|
-
import { InView, useInView } from "react-intersection-observer";
|
|
351
|
-
import { isFragment } from "react-is";
|
|
352
|
-
|
|
353
|
-
// src/animations/fading_entrances/fadeIn.ts
|
|
354
|
-
import { keyframes as keyframes14 } from "@emotion/react";
|
|
355
|
-
var fadeIn = keyframes14`
|
|
328
|
+
const fadeIn = react.keyframes`
|
|
356
329
|
from {
|
|
357
330
|
opacity: 0;
|
|
358
331
|
}
|
|
@@ -362,9 +335,7 @@ var fadeIn = keyframes14`
|
|
|
362
335
|
}
|
|
363
336
|
`;
|
|
364
337
|
|
|
365
|
-
|
|
366
|
-
import { keyframes as keyframes15 } from "@emotion/react";
|
|
367
|
-
var fadeInBottomLeft = keyframes15`
|
|
338
|
+
const fadeInBottomLeft = react.keyframes`
|
|
368
339
|
from {
|
|
369
340
|
opacity: 0;
|
|
370
341
|
transform: translate3d(-100%, 100%, 0);
|
|
@@ -376,9 +347,7 @@ var fadeInBottomLeft = keyframes15`
|
|
|
376
347
|
}
|
|
377
348
|
`;
|
|
378
349
|
|
|
379
|
-
|
|
380
|
-
import { keyframes as keyframes16 } from "@emotion/react";
|
|
381
|
-
var fadeInBottomRight = keyframes16`
|
|
350
|
+
const fadeInBottomRight = react.keyframes`
|
|
382
351
|
from {
|
|
383
352
|
opacity: 0;
|
|
384
353
|
transform: translate3d(100%, 100%, 0);
|
|
@@ -390,9 +359,7 @@ var fadeInBottomRight = keyframes16`
|
|
|
390
359
|
}
|
|
391
360
|
`;
|
|
392
361
|
|
|
393
|
-
|
|
394
|
-
import { keyframes as keyframes17 } from "@emotion/react";
|
|
395
|
-
var fadeInDown = keyframes17`
|
|
362
|
+
const fadeInDown = react.keyframes`
|
|
396
363
|
from {
|
|
397
364
|
opacity: 0;
|
|
398
365
|
transform: translate3d(0, -100%, 0);
|
|
@@ -404,9 +371,7 @@ var fadeInDown = keyframes17`
|
|
|
404
371
|
}
|
|
405
372
|
`;
|
|
406
373
|
|
|
407
|
-
|
|
408
|
-
import { keyframes as keyframes18 } from "@emotion/react";
|
|
409
|
-
var fadeInDownBig = keyframes18`
|
|
374
|
+
const fadeInDownBig = react.keyframes`
|
|
410
375
|
from {
|
|
411
376
|
opacity: 0;
|
|
412
377
|
transform: translate3d(0, -2000px, 0);
|
|
@@ -418,9 +383,7 @@ var fadeInDownBig = keyframes18`
|
|
|
418
383
|
}
|
|
419
384
|
`;
|
|
420
385
|
|
|
421
|
-
|
|
422
|
-
import { keyframes as keyframes19 } from "@emotion/react";
|
|
423
|
-
var fadeInLeft = keyframes19`
|
|
386
|
+
const fadeInLeft = react.keyframes`
|
|
424
387
|
from {
|
|
425
388
|
opacity: 0;
|
|
426
389
|
transform: translate3d(-100%, 0, 0);
|
|
@@ -432,9 +395,7 @@ var fadeInLeft = keyframes19`
|
|
|
432
395
|
}
|
|
433
396
|
`;
|
|
434
397
|
|
|
435
|
-
|
|
436
|
-
import { keyframes as keyframes20 } from "@emotion/react";
|
|
437
|
-
var fadeInLeftBig = keyframes20`
|
|
398
|
+
const fadeInLeftBig = react.keyframes`
|
|
438
399
|
from {
|
|
439
400
|
opacity: 0;
|
|
440
401
|
transform: translate3d(-2000px, 0, 0);
|
|
@@ -446,9 +407,7 @@ var fadeInLeftBig = keyframes20`
|
|
|
446
407
|
}
|
|
447
408
|
`;
|
|
448
409
|
|
|
449
|
-
|
|
450
|
-
import { keyframes as keyframes21 } from "@emotion/react";
|
|
451
|
-
var fadeInRight = keyframes21`
|
|
410
|
+
const fadeInRight = react.keyframes`
|
|
452
411
|
from {
|
|
453
412
|
opacity: 0;
|
|
454
413
|
transform: translate3d(100%, 0, 0);
|
|
@@ -460,9 +419,7 @@ var fadeInRight = keyframes21`
|
|
|
460
419
|
}
|
|
461
420
|
`;
|
|
462
421
|
|
|
463
|
-
|
|
464
|
-
import { keyframes as keyframes22 } from "@emotion/react";
|
|
465
|
-
var fadeInRightBig = keyframes22`
|
|
422
|
+
const fadeInRightBig = react.keyframes`
|
|
466
423
|
from {
|
|
467
424
|
opacity: 0;
|
|
468
425
|
transform: translate3d(2000px, 0, 0);
|
|
@@ -474,9 +431,7 @@ var fadeInRightBig = keyframes22`
|
|
|
474
431
|
}
|
|
475
432
|
`;
|
|
476
433
|
|
|
477
|
-
|
|
478
|
-
import { keyframes as keyframes23 } from "@emotion/react";
|
|
479
|
-
var fadeInTopLeft = keyframes23`
|
|
434
|
+
const fadeInTopLeft = react.keyframes`
|
|
480
435
|
from {
|
|
481
436
|
opacity: 0;
|
|
482
437
|
transform: translate3d(-100%, -100%, 0);
|
|
@@ -488,9 +443,7 @@ var fadeInTopLeft = keyframes23`
|
|
|
488
443
|
}
|
|
489
444
|
`;
|
|
490
445
|
|
|
491
|
-
|
|
492
|
-
import { keyframes as keyframes24 } from "@emotion/react";
|
|
493
|
-
var fadeInTopRight = keyframes24`
|
|
446
|
+
const fadeInTopRight = react.keyframes`
|
|
494
447
|
from {
|
|
495
448
|
opacity: 0;
|
|
496
449
|
transform: translate3d(100%, -100%, 0);
|
|
@@ -502,9 +455,7 @@ var fadeInTopRight = keyframes24`
|
|
|
502
455
|
}
|
|
503
456
|
`;
|
|
504
457
|
|
|
505
|
-
|
|
506
|
-
import { keyframes as keyframes25 } from "@emotion/react";
|
|
507
|
-
var fadeInUp = keyframes25`
|
|
458
|
+
const fadeInUp = react.keyframes`
|
|
508
459
|
from {
|
|
509
460
|
opacity: 0;
|
|
510
461
|
transform: translate3d(0, 100%, 0);
|
|
@@ -516,9 +467,7 @@ var fadeInUp = keyframes25`
|
|
|
516
467
|
}
|
|
517
468
|
`;
|
|
518
469
|
|
|
519
|
-
|
|
520
|
-
import { keyframes as keyframes26 } from "@emotion/react";
|
|
521
|
-
var fadeInUpBig = keyframes26`
|
|
470
|
+
const fadeInUpBig = react.keyframes`
|
|
522
471
|
from {
|
|
523
472
|
opacity: 0;
|
|
524
473
|
transform: translate3d(0, 2000px, 0);
|
|
@@ -530,20 +479,18 @@ var fadeInUpBig = keyframes26`
|
|
|
530
479
|
}
|
|
531
480
|
`;
|
|
532
481
|
|
|
533
|
-
// src/utils/animations.ts
|
|
534
|
-
import { css } from "@emotion/react";
|
|
535
482
|
function getAnimationCss({
|
|
536
483
|
duration = 1e3,
|
|
537
484
|
delay = 0,
|
|
538
485
|
timingFunction = "ease",
|
|
539
|
-
keyframes
|
|
486
|
+
keyframes = fadeInLeft,
|
|
540
487
|
iterationCount = 1
|
|
541
488
|
}) {
|
|
542
|
-
return css`
|
|
489
|
+
return react.css`
|
|
543
490
|
animation-duration: ${duration}ms;
|
|
544
491
|
animation-timing-function: ${timingFunction};
|
|
545
492
|
animation-delay: ${delay}ms;
|
|
546
|
-
animation-name: ${
|
|
493
|
+
animation-name: ${keyframes};
|
|
547
494
|
animation-direction: normal;
|
|
548
495
|
animation-fill-mode: both;
|
|
549
496
|
animation-iteration-count: ${iterationCount};
|
|
@@ -554,7 +501,6 @@ function getAnimationCss({
|
|
|
554
501
|
`;
|
|
555
502
|
}
|
|
556
503
|
|
|
557
|
-
// src/utils/guards.ts
|
|
558
504
|
function isNullable(a) {
|
|
559
505
|
return a == void 0;
|
|
560
506
|
}
|
|
@@ -562,7 +508,6 @@ function isStringLike(value) {
|
|
|
562
508
|
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
563
509
|
}
|
|
564
510
|
|
|
565
|
-
// src/utils/patterns.ts
|
|
566
511
|
function matchIf(onTrue, onFalse) {
|
|
567
512
|
return (condition) => condition ? onTrue() : onFalse();
|
|
568
513
|
}
|
|
@@ -570,19 +515,17 @@ function matchIfOrNull(onTrue) {
|
|
|
570
515
|
return matchIf(onTrue, () => null);
|
|
571
516
|
}
|
|
572
517
|
|
|
573
|
-
// src/Reveal.tsx
|
|
574
|
-
import { Fragment, jsx } from "@emotion/react/jsx-runtime";
|
|
575
518
|
function hideWhen(condition) {
|
|
576
519
|
return matchIfOrNull(() => ({ opacity: 0 }))(condition);
|
|
577
520
|
}
|
|
578
|
-
|
|
521
|
+
const Reveal = (props) => {
|
|
579
522
|
const {
|
|
580
523
|
cascade = false,
|
|
581
524
|
damping = 0.5,
|
|
582
525
|
delay = 0,
|
|
583
526
|
duration = 1e3,
|
|
584
527
|
fraction = 0,
|
|
585
|
-
keyframes
|
|
528
|
+
keyframes = fadeInLeft,
|
|
586
529
|
triggerOnce = false,
|
|
587
530
|
className,
|
|
588
531
|
style,
|
|
@@ -591,43 +534,43 @@ var Reveal = (props) => {
|
|
|
591
534
|
children,
|
|
592
535
|
onVisibilityChange
|
|
593
536
|
} = props;
|
|
594
|
-
const animationStyles = useMemo(
|
|
537
|
+
const animationStyles = react$1.useMemo(
|
|
595
538
|
() => getAnimationCss({
|
|
596
|
-
keyframes
|
|
539
|
+
keyframes,
|
|
597
540
|
duration
|
|
598
541
|
}),
|
|
599
|
-
[duration,
|
|
542
|
+
[duration, keyframes]
|
|
600
543
|
);
|
|
601
544
|
if (isNullable(children))
|
|
602
545
|
return null;
|
|
603
546
|
if (isStringLike(children))
|
|
604
|
-
return /* @__PURE__ */ jsx(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
605
|
-
if (isFragment(children))
|
|
606
|
-
return /* @__PURE__ */ jsx(FragmentReveal, { ...props, animationStyles });
|
|
607
|
-
return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (node, index) => {
|
|
608
|
-
if (!isValidElement(node))
|
|
547
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
548
|
+
if (reactIs.isFragment(children))
|
|
549
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FragmentReveal, { ...props, animationStyles });
|
|
550
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: react$1.Children.map(children, (node, index) => {
|
|
551
|
+
if (!react$1.isValidElement(node))
|
|
609
552
|
return null;
|
|
610
553
|
const nodeDelay = delay + (cascade ? index * duration * damping : 0);
|
|
611
554
|
switch (node.type) {
|
|
612
555
|
case "ol":
|
|
613
556
|
case "ul":
|
|
614
|
-
return /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
557
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
615
558
|
node.type,
|
|
616
559
|
{
|
|
617
560
|
...node.props,
|
|
618
561
|
className: cx(className, node.props.className),
|
|
619
562
|
style: Object.assign({}, style, node.props.style),
|
|
620
|
-
children: /* @__PURE__ */ jsx(Reveal, { ...props, children: node.props.children })
|
|
563
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Reveal, { ...props, children: node.props.children })
|
|
621
564
|
}
|
|
622
565
|
) });
|
|
623
566
|
case "li":
|
|
624
|
-
return /* @__PURE__ */ jsx(
|
|
625
|
-
InView,
|
|
567
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
568
|
+
reactIntersectionObserver.InView,
|
|
626
569
|
{
|
|
627
570
|
threshold: fraction,
|
|
628
571
|
triggerOnce,
|
|
629
572
|
onChange: onVisibilityChange,
|
|
630
|
-
children: ({ inView, ref }) => /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
573
|
+
children: ({ inView, ref }) => /* @__PURE__ */ jsxRuntime.jsx(react.ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
631
574
|
node.type,
|
|
632
575
|
{
|
|
633
576
|
...node.props,
|
|
@@ -648,13 +591,13 @@ var Reveal = (props) => {
|
|
|
648
591
|
}
|
|
649
592
|
);
|
|
650
593
|
default:
|
|
651
|
-
return /* @__PURE__ */ jsx(
|
|
652
|
-
InView,
|
|
594
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
595
|
+
reactIntersectionObserver.InView,
|
|
653
596
|
{
|
|
654
597
|
threshold: fraction,
|
|
655
598
|
triggerOnce,
|
|
656
599
|
onChange: onVisibilityChange,
|
|
657
|
-
children: ({ inView, ref }) => /* @__PURE__ */ jsx(
|
|
600
|
+
children: ({ inView, ref }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
658
601
|
"div",
|
|
659
602
|
{
|
|
660
603
|
ref,
|
|
@@ -663,7 +606,7 @@ var Reveal = (props) => {
|
|
|
663
606
|
style: Object.assign({}, style, hideWhen(!inView), {
|
|
664
607
|
animationDelay: nodeDelay + "ms"
|
|
665
608
|
}),
|
|
666
|
-
children: /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
609
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(react.ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
667
610
|
node.type,
|
|
668
611
|
{
|
|
669
612
|
...node.props,
|
|
@@ -682,11 +625,11 @@ var Reveal = (props) => {
|
|
|
682
625
|
}
|
|
683
626
|
}) });
|
|
684
627
|
};
|
|
685
|
-
|
|
628
|
+
const textBaseStyles = {
|
|
686
629
|
display: "inline-block",
|
|
687
630
|
whiteSpace: "pre"
|
|
688
631
|
};
|
|
689
|
-
|
|
632
|
+
const TextReveal = (props) => {
|
|
690
633
|
const {
|
|
691
634
|
animationStyles,
|
|
692
635
|
cascade = false,
|
|
@@ -700,19 +643,19 @@ var TextReveal = (props) => {
|
|
|
700
643
|
children,
|
|
701
644
|
onVisibilityChange
|
|
702
645
|
} = props;
|
|
703
|
-
const { ref, inView } = useInView({
|
|
646
|
+
const { ref, inView } = reactIntersectionObserver.useInView({
|
|
704
647
|
triggerOnce,
|
|
705
648
|
threshold: fraction,
|
|
706
649
|
onChange: onVisibilityChange
|
|
707
650
|
});
|
|
708
651
|
return matchIf(
|
|
709
|
-
() => /* @__PURE__ */ jsx(
|
|
652
|
+
() => /* @__PURE__ */ jsxRuntime.jsx(
|
|
710
653
|
"div",
|
|
711
654
|
{
|
|
712
655
|
ref,
|
|
713
656
|
className,
|
|
714
657
|
style: Object.assign({}, style, textBaseStyles),
|
|
715
|
-
children: children.split("").map((char, index) => /* @__PURE__ */ jsx(
|
|
658
|
+
children: children.split("").map((char, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
716
659
|
"span",
|
|
717
660
|
{
|
|
718
661
|
css: matchIfOrNull(() => animationStyles)(inView),
|
|
@@ -725,10 +668,10 @@ var TextReveal = (props) => {
|
|
|
725
668
|
))
|
|
726
669
|
}
|
|
727
670
|
),
|
|
728
|
-
() => /* @__PURE__ */ jsx(FragmentReveal, { ...props, children })
|
|
671
|
+
() => /* @__PURE__ */ jsxRuntime.jsx(FragmentReveal, { ...props, children })
|
|
729
672
|
)(cascade);
|
|
730
673
|
};
|
|
731
|
-
|
|
674
|
+
const FragmentReveal = (props) => {
|
|
732
675
|
const {
|
|
733
676
|
animationStyles,
|
|
734
677
|
fraction = 0,
|
|
@@ -738,12 +681,12 @@ var FragmentReveal = (props) => {
|
|
|
738
681
|
children,
|
|
739
682
|
onVisibilityChange
|
|
740
683
|
} = props;
|
|
741
|
-
const { ref, inView } = useInView({
|
|
684
|
+
const { ref, inView } = reactIntersectionObserver.useInView({
|
|
742
685
|
triggerOnce,
|
|
743
686
|
threshold: fraction,
|
|
744
687
|
onChange: onVisibilityChange
|
|
745
688
|
});
|
|
746
|
-
return /* @__PURE__ */ jsx(
|
|
689
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
747
690
|
"div",
|
|
748
691
|
{
|
|
749
692
|
ref,
|
|
@@ -755,9 +698,7 @@ var FragmentReveal = (props) => {
|
|
|
755
698
|
);
|
|
756
699
|
};
|
|
757
700
|
|
|
758
|
-
|
|
759
|
-
import { jsx as jsx2 } from "@emotion/react/jsx-runtime";
|
|
760
|
-
function getStyles(effect) {
|
|
701
|
+
function getStyles$7(effect) {
|
|
761
702
|
switch (effect) {
|
|
762
703
|
case "bounce":
|
|
763
704
|
return [bounce, { transformOrigin: "center bottom" }];
|
|
@@ -787,25 +728,20 @@ function getStyles(effect) {
|
|
|
787
728
|
return [wobble];
|
|
788
729
|
}
|
|
789
730
|
}
|
|
790
|
-
|
|
731
|
+
const AttentionSeeker = (props) => {
|
|
791
732
|
const { effect = "bounce", style, ...rest } = props;
|
|
792
|
-
const [
|
|
793
|
-
return /* @__PURE__ */
|
|
733
|
+
const [keyframes, animationCss] = react$1.useMemo(() => getStyles$7(effect), [effect]);
|
|
734
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
794
735
|
Reveal,
|
|
795
736
|
{
|
|
796
|
-
keyframes
|
|
797
|
-
style: Object.assign({}, style,
|
|
737
|
+
keyframes,
|
|
738
|
+
style: Object.assign({}, style, animationCss),
|
|
798
739
|
...rest
|
|
799
740
|
}
|
|
800
741
|
);
|
|
801
742
|
};
|
|
802
743
|
|
|
803
|
-
|
|
804
|
-
import { useMemo as useMemo3 } from "react";
|
|
805
|
-
|
|
806
|
-
// src/animations/bouncing_entrances/bounceIn.ts
|
|
807
|
-
import { keyframes as keyframes27 } from "@emotion/react";
|
|
808
|
-
var bounceIn = keyframes27`
|
|
744
|
+
const bounceIn = react.keyframes`
|
|
809
745
|
from,
|
|
810
746
|
20%,
|
|
811
747
|
40%,
|
|
@@ -843,9 +779,7 @@ var bounceIn = keyframes27`
|
|
|
843
779
|
}
|
|
844
780
|
`;
|
|
845
781
|
|
|
846
|
-
|
|
847
|
-
import { keyframes as keyframes28 } from "@emotion/react";
|
|
848
|
-
var bounceInDown = keyframes28`
|
|
782
|
+
const bounceInDown = react.keyframes`
|
|
849
783
|
from,
|
|
850
784
|
60%,
|
|
851
785
|
75%,
|
|
@@ -877,9 +811,7 @@ var bounceInDown = keyframes28`
|
|
|
877
811
|
}
|
|
878
812
|
`;
|
|
879
813
|
|
|
880
|
-
|
|
881
|
-
import { keyframes as keyframes29 } from "@emotion/react";
|
|
882
|
-
var bounceInLeft = keyframes29`
|
|
814
|
+
const bounceInLeft = react.keyframes`
|
|
883
815
|
from,
|
|
884
816
|
60%,
|
|
885
817
|
75%,
|
|
@@ -911,9 +843,7 @@ var bounceInLeft = keyframes29`
|
|
|
911
843
|
}
|
|
912
844
|
`;
|
|
913
845
|
|
|
914
|
-
|
|
915
|
-
import { keyframes as keyframes30 } from "@emotion/react";
|
|
916
|
-
var bounceInRight = keyframes30`
|
|
846
|
+
const bounceInRight = react.keyframes`
|
|
917
847
|
from,
|
|
918
848
|
60%,
|
|
919
849
|
75%,
|
|
@@ -945,9 +875,7 @@ var bounceInRight = keyframes30`
|
|
|
945
875
|
}
|
|
946
876
|
`;
|
|
947
877
|
|
|
948
|
-
|
|
949
|
-
import { keyframes as keyframes31 } from "@emotion/react";
|
|
950
|
-
var bounceInUp = keyframes31`
|
|
878
|
+
const bounceInUp = react.keyframes`
|
|
951
879
|
from,
|
|
952
880
|
60%,
|
|
953
881
|
75%,
|
|
@@ -979,9 +907,7 @@ var bounceInUp = keyframes31`
|
|
|
979
907
|
}
|
|
980
908
|
`;
|
|
981
909
|
|
|
982
|
-
|
|
983
|
-
import { keyframes as keyframes32 } from "@emotion/react";
|
|
984
|
-
var bounceOut = keyframes32`
|
|
910
|
+
const bounceOut = react.keyframes`
|
|
985
911
|
20% {
|
|
986
912
|
transform: scale3d(0.9, 0.9, 0.9);
|
|
987
913
|
}
|
|
@@ -998,9 +924,7 @@ var bounceOut = keyframes32`
|
|
|
998
924
|
}
|
|
999
925
|
`;
|
|
1000
926
|
|
|
1001
|
-
|
|
1002
|
-
import { keyframes as keyframes33 } from "@emotion/react";
|
|
1003
|
-
var bounceOutDown = keyframes33`
|
|
927
|
+
const bounceOutDown = react.keyframes`
|
|
1004
928
|
20% {
|
|
1005
929
|
transform: translate3d(0, 10px, 0) scaleY(0.985);
|
|
1006
930
|
}
|
|
@@ -1017,9 +941,7 @@ var bounceOutDown = keyframes33`
|
|
|
1017
941
|
}
|
|
1018
942
|
`;
|
|
1019
943
|
|
|
1020
|
-
|
|
1021
|
-
import { keyframes as keyframes34 } from "@emotion/react";
|
|
1022
|
-
var bounceOutLeft = keyframes34`
|
|
944
|
+
const bounceOutLeft = react.keyframes`
|
|
1023
945
|
20% {
|
|
1024
946
|
opacity: 1;
|
|
1025
947
|
transform: translate3d(20px, 0, 0) scaleX(0.9);
|
|
@@ -1031,9 +953,7 @@ var bounceOutLeft = keyframes34`
|
|
|
1031
953
|
}
|
|
1032
954
|
`;
|
|
1033
955
|
|
|
1034
|
-
|
|
1035
|
-
import { keyframes as keyframes35 } from "@emotion/react";
|
|
1036
|
-
var bounceOutRight = keyframes35`
|
|
956
|
+
const bounceOutRight = react.keyframes`
|
|
1037
957
|
20% {
|
|
1038
958
|
opacity: 1;
|
|
1039
959
|
transform: translate3d(-20px, 0, 0) scaleX(0.9);
|
|
@@ -1045,9 +965,7 @@ var bounceOutRight = keyframes35`
|
|
|
1045
965
|
}
|
|
1046
966
|
`;
|
|
1047
967
|
|
|
1048
|
-
|
|
1049
|
-
import { keyframes as keyframes36 } from "@emotion/react";
|
|
1050
|
-
var bounceOutUp = keyframes36`
|
|
968
|
+
const bounceOutUp = react.keyframes`
|
|
1051
969
|
20% {
|
|
1052
970
|
transform: translate3d(0, -10px, 0) scaleY(0.985);
|
|
1053
971
|
}
|
|
@@ -1064,9 +982,7 @@ var bounceOutUp = keyframes36`
|
|
|
1064
982
|
}
|
|
1065
983
|
`;
|
|
1066
984
|
|
|
1067
|
-
|
|
1068
|
-
import { jsx as jsx3 } from "@emotion/react/jsx-runtime";
|
|
1069
|
-
function getStyles2(reverse, direction) {
|
|
985
|
+
function getStyles$6(reverse, direction) {
|
|
1070
986
|
switch (direction) {
|
|
1071
987
|
case "down":
|
|
1072
988
|
return reverse ? bounceOutDown : bounceInDown;
|
|
@@ -1080,21 +996,16 @@ function getStyles2(reverse, direction) {
|
|
|
1080
996
|
return reverse ? bounceOut : bounceIn;
|
|
1081
997
|
}
|
|
1082
998
|
}
|
|
1083
|
-
|
|
999
|
+
const Bounce = (props) => {
|
|
1084
1000
|
const { direction, reverse = false, ...rest } = props;
|
|
1085
|
-
const
|
|
1086
|
-
() =>
|
|
1001
|
+
const keyframes = react$1.useMemo(
|
|
1002
|
+
() => getStyles$6(reverse, direction),
|
|
1087
1003
|
[direction, reverse]
|
|
1088
1004
|
);
|
|
1089
|
-
return /* @__PURE__ */
|
|
1005
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes, ...rest });
|
|
1090
1006
|
};
|
|
1091
1007
|
|
|
1092
|
-
|
|
1093
|
-
import { useMemo as useMemo4 } from "react";
|
|
1094
|
-
|
|
1095
|
-
// src/animations/fading_exits/fadeOut.ts
|
|
1096
|
-
import { keyframes as keyframes37 } from "@emotion/react";
|
|
1097
|
-
var fadeOut = keyframes37`
|
|
1008
|
+
const fadeOut = react.keyframes`
|
|
1098
1009
|
from {
|
|
1099
1010
|
opacity: 1;
|
|
1100
1011
|
}
|
|
@@ -1104,9 +1015,7 @@ var fadeOut = keyframes37`
|
|
|
1104
1015
|
}
|
|
1105
1016
|
`;
|
|
1106
1017
|
|
|
1107
|
-
|
|
1108
|
-
import { keyframes as keyframes38 } from "@emotion/react";
|
|
1109
|
-
var fadeOutBottomLeft = keyframes38`
|
|
1018
|
+
const fadeOutBottomLeft = react.keyframes`
|
|
1110
1019
|
from {
|
|
1111
1020
|
opacity: 1;
|
|
1112
1021
|
transform: translate3d(0, 0, 0);
|
|
@@ -1118,9 +1027,7 @@ var fadeOutBottomLeft = keyframes38`
|
|
|
1118
1027
|
}
|
|
1119
1028
|
`;
|
|
1120
1029
|
|
|
1121
|
-
|
|
1122
|
-
import { keyframes as keyframes39 } from "@emotion/react";
|
|
1123
|
-
var fadeOutBottomRight = keyframes39`
|
|
1030
|
+
const fadeOutBottomRight = react.keyframes`
|
|
1124
1031
|
from {
|
|
1125
1032
|
opacity: 1;
|
|
1126
1033
|
transform: translate3d(0, 0, 0);
|
|
@@ -1132,9 +1039,7 @@ var fadeOutBottomRight = keyframes39`
|
|
|
1132
1039
|
}
|
|
1133
1040
|
`;
|
|
1134
1041
|
|
|
1135
|
-
|
|
1136
|
-
import { keyframes as keyframes40 } from "@emotion/react";
|
|
1137
|
-
var fadeOutDown = keyframes40`
|
|
1042
|
+
const fadeOutDown = react.keyframes`
|
|
1138
1043
|
from {
|
|
1139
1044
|
opacity: 1;
|
|
1140
1045
|
}
|
|
@@ -1145,9 +1050,7 @@ var fadeOutDown = keyframes40`
|
|
|
1145
1050
|
}
|
|
1146
1051
|
`;
|
|
1147
1052
|
|
|
1148
|
-
|
|
1149
|
-
import { keyframes as keyframes41 } from "@emotion/react";
|
|
1150
|
-
var fadeOutDownBig = keyframes41`
|
|
1053
|
+
const fadeOutDownBig = react.keyframes`
|
|
1151
1054
|
from {
|
|
1152
1055
|
opacity: 1;
|
|
1153
1056
|
}
|
|
@@ -1158,9 +1061,7 @@ var fadeOutDownBig = keyframes41`
|
|
|
1158
1061
|
}
|
|
1159
1062
|
`;
|
|
1160
1063
|
|
|
1161
|
-
|
|
1162
|
-
import { keyframes as keyframes42 } from "@emotion/react";
|
|
1163
|
-
var fadeOutLeft = keyframes42`
|
|
1064
|
+
const fadeOutLeft = react.keyframes`
|
|
1164
1065
|
from {
|
|
1165
1066
|
opacity: 1;
|
|
1166
1067
|
}
|
|
@@ -1171,9 +1072,7 @@ var fadeOutLeft = keyframes42`
|
|
|
1171
1072
|
}
|
|
1172
1073
|
`;
|
|
1173
1074
|
|
|
1174
|
-
|
|
1175
|
-
import { keyframes as keyframes43 } from "@emotion/react";
|
|
1176
|
-
var fadeOutLeftBig = keyframes43`
|
|
1075
|
+
const fadeOutLeftBig = react.keyframes`
|
|
1177
1076
|
from {
|
|
1178
1077
|
opacity: 1;
|
|
1179
1078
|
}
|
|
@@ -1184,9 +1083,7 @@ var fadeOutLeftBig = keyframes43`
|
|
|
1184
1083
|
}
|
|
1185
1084
|
`;
|
|
1186
1085
|
|
|
1187
|
-
|
|
1188
|
-
import { keyframes as keyframes44 } from "@emotion/react";
|
|
1189
|
-
var fadeOutRight = keyframes44`
|
|
1086
|
+
const fadeOutRight = react.keyframes`
|
|
1190
1087
|
from {
|
|
1191
1088
|
opacity: 1;
|
|
1192
1089
|
}
|
|
@@ -1197,9 +1094,7 @@ var fadeOutRight = keyframes44`
|
|
|
1197
1094
|
}
|
|
1198
1095
|
`;
|
|
1199
1096
|
|
|
1200
|
-
|
|
1201
|
-
import { keyframes as keyframes45 } from "@emotion/react";
|
|
1202
|
-
var fadeOutRightBig = keyframes45`
|
|
1097
|
+
const fadeOutRightBig = react.keyframes`
|
|
1203
1098
|
from {
|
|
1204
1099
|
opacity: 1;
|
|
1205
1100
|
}
|
|
@@ -1210,9 +1105,7 @@ var fadeOutRightBig = keyframes45`
|
|
|
1210
1105
|
}
|
|
1211
1106
|
`;
|
|
1212
1107
|
|
|
1213
|
-
|
|
1214
|
-
import { keyframes as keyframes46 } from "@emotion/react";
|
|
1215
|
-
var fadeOutTopLeft = keyframes46`
|
|
1108
|
+
const fadeOutTopLeft = react.keyframes`
|
|
1216
1109
|
from {
|
|
1217
1110
|
opacity: 1;
|
|
1218
1111
|
transform: translate3d(0, 0, 0);
|
|
@@ -1224,9 +1117,7 @@ var fadeOutTopLeft = keyframes46`
|
|
|
1224
1117
|
}
|
|
1225
1118
|
`;
|
|
1226
1119
|
|
|
1227
|
-
|
|
1228
|
-
import { keyframes as keyframes47 } from "@emotion/react";
|
|
1229
|
-
var fadeOutTopRight = keyframes47`
|
|
1120
|
+
const fadeOutTopRight = react.keyframes`
|
|
1230
1121
|
from {
|
|
1231
1122
|
opacity: 1;
|
|
1232
1123
|
transform: translate3d(0, 0, 0);
|
|
@@ -1238,9 +1129,7 @@ var fadeOutTopRight = keyframes47`
|
|
|
1238
1129
|
}
|
|
1239
1130
|
`;
|
|
1240
1131
|
|
|
1241
|
-
|
|
1242
|
-
import { keyframes as keyframes48 } from "@emotion/react";
|
|
1243
|
-
var fadeOutUp = keyframes48`
|
|
1132
|
+
const fadeOutUp = react.keyframes`
|
|
1244
1133
|
from {
|
|
1245
1134
|
opacity: 1;
|
|
1246
1135
|
}
|
|
@@ -1251,9 +1140,7 @@ var fadeOutUp = keyframes48`
|
|
|
1251
1140
|
}
|
|
1252
1141
|
`;
|
|
1253
1142
|
|
|
1254
|
-
|
|
1255
|
-
import { keyframes as keyframes49 } from "@emotion/react";
|
|
1256
|
-
var fadeOutUpBig = keyframes49`
|
|
1143
|
+
const fadeOutUpBig = react.keyframes`
|
|
1257
1144
|
from {
|
|
1258
1145
|
opacity: 1;
|
|
1259
1146
|
}
|
|
@@ -1264,9 +1151,7 @@ var fadeOutUpBig = keyframes49`
|
|
|
1264
1151
|
}
|
|
1265
1152
|
`;
|
|
1266
1153
|
|
|
1267
|
-
|
|
1268
|
-
import { jsx as jsx4 } from "@emotion/react/jsx-runtime";
|
|
1269
|
-
function getStyles3(big, reverse, direction) {
|
|
1154
|
+
function getStyles$5(big, reverse, direction) {
|
|
1270
1155
|
switch (direction) {
|
|
1271
1156
|
case "bottom-left":
|
|
1272
1157
|
return reverse ? fadeOutBottomLeft : fadeInBottomLeft;
|
|
@@ -1288,21 +1173,16 @@ function getStyles3(big, reverse, direction) {
|
|
|
1288
1173
|
return reverse ? fadeOut : fadeIn;
|
|
1289
1174
|
}
|
|
1290
1175
|
}
|
|
1291
|
-
|
|
1176
|
+
const Fade = (props) => {
|
|
1292
1177
|
const { big = false, direction, reverse = false, ...rest } = props;
|
|
1293
|
-
const
|
|
1294
|
-
() =>
|
|
1178
|
+
const keyframes = react$1.useMemo(
|
|
1179
|
+
() => getStyles$5(big, reverse, direction),
|
|
1295
1180
|
[big, direction, reverse]
|
|
1296
1181
|
);
|
|
1297
|
-
return /* @__PURE__ */
|
|
1182
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes, ...rest });
|
|
1298
1183
|
};
|
|
1299
1184
|
|
|
1300
|
-
|
|
1301
|
-
import { useMemo as useMemo5 } from "react";
|
|
1302
|
-
|
|
1303
|
-
// src/animations/flippers/flip.ts
|
|
1304
|
-
import { keyframes as keyframes50 } from "@emotion/react";
|
|
1305
|
-
var flip = keyframes50`
|
|
1185
|
+
const flip = react.keyframes`
|
|
1306
1186
|
from {
|
|
1307
1187
|
transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);
|
|
1308
1188
|
animation-timing-function: ease-out;
|
|
@@ -1332,9 +1212,7 @@ var flip = keyframes50`
|
|
|
1332
1212
|
}
|
|
1333
1213
|
`;
|
|
1334
1214
|
|
|
1335
|
-
|
|
1336
|
-
import { keyframes as keyframes51 } from "@emotion/react";
|
|
1337
|
-
var flipInX = keyframes51`
|
|
1215
|
+
const flipInX = react.keyframes`
|
|
1338
1216
|
from {
|
|
1339
1217
|
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
1340
1218
|
animation-timing-function: ease-in;
|
|
@@ -1360,9 +1238,7 @@ var flipInX = keyframes51`
|
|
|
1360
1238
|
}
|
|
1361
1239
|
`;
|
|
1362
1240
|
|
|
1363
|
-
|
|
1364
|
-
import { keyframes as keyframes52 } from "@emotion/react";
|
|
1365
|
-
var flipInY = keyframes52`
|
|
1241
|
+
const flipInY = react.keyframes`
|
|
1366
1242
|
from {
|
|
1367
1243
|
transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
|
|
1368
1244
|
animation-timing-function: ease-in;
|
|
@@ -1388,9 +1264,7 @@ var flipInY = keyframes52`
|
|
|
1388
1264
|
}
|
|
1389
1265
|
`;
|
|
1390
1266
|
|
|
1391
|
-
|
|
1392
|
-
import { keyframes as keyframes53 } from "@emotion/react";
|
|
1393
|
-
var flipOutX = keyframes53`
|
|
1267
|
+
const flipOutX = react.keyframes`
|
|
1394
1268
|
from {
|
|
1395
1269
|
transform: perspective(400px);
|
|
1396
1270
|
}
|
|
@@ -1406,9 +1280,7 @@ var flipOutX = keyframes53`
|
|
|
1406
1280
|
}
|
|
1407
1281
|
`;
|
|
1408
1282
|
|
|
1409
|
-
|
|
1410
|
-
import { keyframes as keyframes54 } from "@emotion/react";
|
|
1411
|
-
var flipOutY = keyframes54`
|
|
1283
|
+
const flipOutY = react.keyframes`
|
|
1412
1284
|
from {
|
|
1413
1285
|
transform: perspective(400px);
|
|
1414
1286
|
}
|
|
@@ -1424,9 +1296,7 @@ var flipOutY = keyframes54`
|
|
|
1424
1296
|
}
|
|
1425
1297
|
`;
|
|
1426
1298
|
|
|
1427
|
-
|
|
1428
|
-
import { jsx as jsx5 } from "@emotion/react/jsx-runtime";
|
|
1429
|
-
function getStyles4(reverse, direction) {
|
|
1299
|
+
function getStyles$4(reverse, direction) {
|
|
1430
1300
|
switch (direction) {
|
|
1431
1301
|
case "horizontal":
|
|
1432
1302
|
return reverse ? flipOutX : flipInX;
|
|
@@ -1436,28 +1306,26 @@ function getStyles4(reverse, direction) {
|
|
|
1436
1306
|
return flip;
|
|
1437
1307
|
}
|
|
1438
1308
|
}
|
|
1439
|
-
|
|
1309
|
+
const animationCss$1 = {
|
|
1440
1310
|
backfaceVisibility: "visible"
|
|
1441
1311
|
};
|
|
1442
|
-
|
|
1312
|
+
const Flip = (props) => {
|
|
1443
1313
|
const { direction, reverse = false, style, ...rest } = props;
|
|
1444
|
-
const
|
|
1445
|
-
() =>
|
|
1314
|
+
const keyframes = react$1.useMemo(
|
|
1315
|
+
() => getStyles$4(reverse, direction),
|
|
1446
1316
|
[direction, reverse]
|
|
1447
1317
|
);
|
|
1448
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1449
1319
|
Reveal,
|
|
1450
1320
|
{
|
|
1451
|
-
keyframes
|
|
1452
|
-
style: Object.assign({}, style, animationCss),
|
|
1321
|
+
keyframes,
|
|
1322
|
+
style: Object.assign({}, style, animationCss$1),
|
|
1453
1323
|
...rest
|
|
1454
1324
|
}
|
|
1455
1325
|
);
|
|
1456
1326
|
};
|
|
1457
1327
|
|
|
1458
|
-
|
|
1459
|
-
import { keyframes as keyframes55 } from "@emotion/react";
|
|
1460
|
-
var hinge = keyframes55`
|
|
1328
|
+
const hinge = react.keyframes`
|
|
1461
1329
|
0% {
|
|
1462
1330
|
animation-timing-function: ease-in-out;
|
|
1463
1331
|
}
|
|
@@ -1481,9 +1349,7 @@ var hinge = keyframes55`
|
|
|
1481
1349
|
}
|
|
1482
1350
|
`;
|
|
1483
1351
|
|
|
1484
|
-
|
|
1485
|
-
import { keyframes as keyframes56 } from "@emotion/react";
|
|
1486
|
-
var jackInTheBox = keyframes56`
|
|
1352
|
+
const jackInTheBox = react.keyframes`
|
|
1487
1353
|
from {
|
|
1488
1354
|
opacity: 0;
|
|
1489
1355
|
transform: scale(0.1) rotate(30deg);
|
|
@@ -1504,9 +1370,7 @@ var jackInTheBox = keyframes56`
|
|
|
1504
1370
|
}
|
|
1505
1371
|
`;
|
|
1506
1372
|
|
|
1507
|
-
|
|
1508
|
-
import { keyframes as keyframes57 } from "@emotion/react";
|
|
1509
|
-
var rollIn = keyframes57`
|
|
1373
|
+
const rollIn = react.keyframes`
|
|
1510
1374
|
from {
|
|
1511
1375
|
opacity: 0;
|
|
1512
1376
|
transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
|
|
@@ -1518,9 +1382,7 @@ var rollIn = keyframes57`
|
|
|
1518
1382
|
}
|
|
1519
1383
|
`;
|
|
1520
1384
|
|
|
1521
|
-
|
|
1522
|
-
import { keyframes as keyframes58 } from "@emotion/react";
|
|
1523
|
-
var rollOut = keyframes58`
|
|
1385
|
+
const rollOut = react.keyframes`
|
|
1524
1386
|
from {
|
|
1525
1387
|
opacity: 1;
|
|
1526
1388
|
}
|
|
@@ -1531,47 +1393,35 @@ var rollOut = keyframes58`
|
|
|
1531
1393
|
}
|
|
1532
1394
|
`;
|
|
1533
1395
|
|
|
1534
|
-
|
|
1535
|
-
import { jsx as jsx6 } from "@emotion/react/jsx-runtime";
|
|
1536
|
-
var animationCss2 = {
|
|
1396
|
+
const animationCss = {
|
|
1537
1397
|
transformOrigin: "top left"
|
|
1538
1398
|
};
|
|
1539
|
-
|
|
1399
|
+
const Hinge = (props) => {
|
|
1540
1400
|
const { style, ...rest } = props;
|
|
1541
|
-
return /* @__PURE__ */
|
|
1401
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1542
1402
|
Reveal,
|
|
1543
1403
|
{
|
|
1544
1404
|
keyframes: hinge,
|
|
1545
|
-
style: Object.assign({}, style,
|
|
1405
|
+
style: Object.assign({}, style, animationCss),
|
|
1546
1406
|
...rest
|
|
1547
1407
|
}
|
|
1548
1408
|
);
|
|
1549
1409
|
};
|
|
1550
1410
|
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
var JackInTheBox = (props) => {
|
|
1554
|
-
return /* @__PURE__ */ jsx7(Reveal, { keyframes: jackInTheBox, ...props });
|
|
1411
|
+
const JackInTheBox = (props) => {
|
|
1412
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes: jackInTheBox, ...props });
|
|
1555
1413
|
};
|
|
1556
1414
|
|
|
1557
|
-
|
|
1558
|
-
import { useMemo as useMemo6 } from "react";
|
|
1559
|
-
import { jsx as jsx8 } from "@emotion/react/jsx-runtime";
|
|
1560
|
-
function getStyles5(reverse) {
|
|
1415
|
+
function getStyles$3(reverse) {
|
|
1561
1416
|
return reverse ? rollOut : rollIn;
|
|
1562
1417
|
}
|
|
1563
|
-
|
|
1418
|
+
const Roll = (props) => {
|
|
1564
1419
|
const { reverse = false, ...rest } = props;
|
|
1565
|
-
const
|
|
1566
|
-
return /* @__PURE__ */
|
|
1420
|
+
const keyframes = react$1.useMemo(() => getStyles$3(reverse), [reverse]);
|
|
1421
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes, ...rest });
|
|
1567
1422
|
};
|
|
1568
1423
|
|
|
1569
|
-
|
|
1570
|
-
import { useMemo as useMemo7 } from "react";
|
|
1571
|
-
|
|
1572
|
-
// src/animations/rotating_entrances/rotateIn.ts
|
|
1573
|
-
import { keyframes as keyframes59 } from "@emotion/react";
|
|
1574
|
-
var rotateIn = keyframes59`
|
|
1424
|
+
const rotateIn = react.keyframes`
|
|
1575
1425
|
from {
|
|
1576
1426
|
transform: rotate3d(0, 0, 1, -200deg);
|
|
1577
1427
|
opacity: 0;
|
|
@@ -1583,9 +1433,7 @@ var rotateIn = keyframes59`
|
|
|
1583
1433
|
}
|
|
1584
1434
|
`;
|
|
1585
1435
|
|
|
1586
|
-
|
|
1587
|
-
import { keyframes as keyframes60 } from "@emotion/react";
|
|
1588
|
-
var rotateInDownLeft = keyframes60`
|
|
1436
|
+
const rotateInDownLeft = react.keyframes`
|
|
1589
1437
|
from {
|
|
1590
1438
|
transform: rotate3d(0, 0, 1, -45deg);
|
|
1591
1439
|
opacity: 0;
|
|
@@ -1597,9 +1445,7 @@ var rotateInDownLeft = keyframes60`
|
|
|
1597
1445
|
}
|
|
1598
1446
|
`;
|
|
1599
1447
|
|
|
1600
|
-
|
|
1601
|
-
import { keyframes as keyframes61 } from "@emotion/react";
|
|
1602
|
-
var rotateInDownRight = keyframes61`
|
|
1448
|
+
const rotateInDownRight = react.keyframes`
|
|
1603
1449
|
from {
|
|
1604
1450
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1605
1451
|
opacity: 0;
|
|
@@ -1611,9 +1457,7 @@ var rotateInDownRight = keyframes61`
|
|
|
1611
1457
|
}
|
|
1612
1458
|
`;
|
|
1613
1459
|
|
|
1614
|
-
|
|
1615
|
-
import { keyframes as keyframes62 } from "@emotion/react";
|
|
1616
|
-
var rotateInUpLeft = keyframes62`
|
|
1460
|
+
const rotateInUpLeft = react.keyframes`
|
|
1617
1461
|
from {
|
|
1618
1462
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1619
1463
|
opacity: 0;
|
|
@@ -1625,9 +1469,7 @@ var rotateInUpLeft = keyframes62`
|
|
|
1625
1469
|
}
|
|
1626
1470
|
`;
|
|
1627
1471
|
|
|
1628
|
-
|
|
1629
|
-
import { keyframes as keyframes63 } from "@emotion/react";
|
|
1630
|
-
var rotateInUpRight = keyframes63`
|
|
1472
|
+
const rotateInUpRight = react.keyframes`
|
|
1631
1473
|
from {
|
|
1632
1474
|
transform: rotate3d(0, 0, 1, -90deg);
|
|
1633
1475
|
opacity: 0;
|
|
@@ -1639,9 +1481,7 @@ var rotateInUpRight = keyframes63`
|
|
|
1639
1481
|
}
|
|
1640
1482
|
`;
|
|
1641
1483
|
|
|
1642
|
-
|
|
1643
|
-
import { keyframes as keyframes64 } from "@emotion/react";
|
|
1644
|
-
var rotateOut = keyframes64`
|
|
1484
|
+
const rotateOut = react.keyframes`
|
|
1645
1485
|
from {
|
|
1646
1486
|
opacity: 1;
|
|
1647
1487
|
}
|
|
@@ -1652,9 +1492,7 @@ var rotateOut = keyframes64`
|
|
|
1652
1492
|
}
|
|
1653
1493
|
`;
|
|
1654
1494
|
|
|
1655
|
-
|
|
1656
|
-
import { keyframes as keyframes65 } from "@emotion/react";
|
|
1657
|
-
var rotateOutDownLeft = keyframes65`
|
|
1495
|
+
const rotateOutDownLeft = react.keyframes`
|
|
1658
1496
|
from {
|
|
1659
1497
|
opacity: 1;
|
|
1660
1498
|
}
|
|
@@ -1665,9 +1503,7 @@ var rotateOutDownLeft = keyframes65`
|
|
|
1665
1503
|
}
|
|
1666
1504
|
`;
|
|
1667
1505
|
|
|
1668
|
-
|
|
1669
|
-
import { keyframes as keyframes66 } from "@emotion/react";
|
|
1670
|
-
var rotateOutDownRight = keyframes66`
|
|
1506
|
+
const rotateOutDownRight = react.keyframes`
|
|
1671
1507
|
from {
|
|
1672
1508
|
opacity: 1;
|
|
1673
1509
|
}
|
|
@@ -1678,9 +1514,7 @@ var rotateOutDownRight = keyframes66`
|
|
|
1678
1514
|
}
|
|
1679
1515
|
`;
|
|
1680
1516
|
|
|
1681
|
-
|
|
1682
|
-
import { keyframes as keyframes67 } from "@emotion/react";
|
|
1683
|
-
var rotateOutUpLeft = keyframes67`
|
|
1517
|
+
const rotateOutUpLeft = react.keyframes`
|
|
1684
1518
|
from {
|
|
1685
1519
|
opacity: 1;
|
|
1686
1520
|
}
|
|
@@ -1691,9 +1525,7 @@ var rotateOutUpLeft = keyframes67`
|
|
|
1691
1525
|
}
|
|
1692
1526
|
`;
|
|
1693
1527
|
|
|
1694
|
-
|
|
1695
|
-
import { keyframes as keyframes68 } from "@emotion/react";
|
|
1696
|
-
var rotateOutUpRight = keyframes68`
|
|
1528
|
+
const rotateOutUpRight = react.keyframes`
|
|
1697
1529
|
from {
|
|
1698
1530
|
opacity: 1;
|
|
1699
1531
|
}
|
|
@@ -1704,9 +1536,7 @@ var rotateOutUpRight = keyframes68`
|
|
|
1704
1536
|
}
|
|
1705
1537
|
`;
|
|
1706
1538
|
|
|
1707
|
-
|
|
1708
|
-
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
1709
|
-
function getStyles6(reverse, direction) {
|
|
1539
|
+
function getStyles$2(reverse, direction) {
|
|
1710
1540
|
switch (direction) {
|
|
1711
1541
|
case "bottom-left":
|
|
1712
1542
|
return reverse ? [rotateOutDownLeft, { transformOrigin: "left bottom" }] : [rotateInDownLeft, { transformOrigin: "left bottom" }];
|
|
@@ -1720,28 +1550,23 @@ function getStyles6(reverse, direction) {
|
|
|
1720
1550
|
return reverse ? [rotateOut, { transformOrigin: "center" }] : [rotateIn, { transformOrigin: "center" }];
|
|
1721
1551
|
}
|
|
1722
1552
|
}
|
|
1723
|
-
|
|
1553
|
+
const Rotate = (props) => {
|
|
1724
1554
|
const { direction, reverse = false, style, ...rest } = props;
|
|
1725
|
-
const [
|
|
1726
|
-
() =>
|
|
1555
|
+
const [keyframes, animationCss] = react$1.useMemo(
|
|
1556
|
+
() => getStyles$2(reverse, direction),
|
|
1727
1557
|
[direction, reverse]
|
|
1728
1558
|
);
|
|
1729
|
-
return /* @__PURE__ */
|
|
1559
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
1560
|
Reveal,
|
|
1731
1561
|
{
|
|
1732
|
-
keyframes
|
|
1733
|
-
style: Object.assign({}, style,
|
|
1562
|
+
keyframes,
|
|
1563
|
+
style: Object.assign({}, style, animationCss),
|
|
1734
1564
|
...rest
|
|
1735
1565
|
}
|
|
1736
1566
|
);
|
|
1737
1567
|
};
|
|
1738
1568
|
|
|
1739
|
-
|
|
1740
|
-
import { useMemo as useMemo8 } from "react";
|
|
1741
|
-
|
|
1742
|
-
// src/animations/sliding_entrances/slideInDown.ts
|
|
1743
|
-
import { keyframes as keyframes69 } from "@emotion/react";
|
|
1744
|
-
var slideInDown = keyframes69`
|
|
1569
|
+
const slideInDown = react.keyframes`
|
|
1745
1570
|
from {
|
|
1746
1571
|
transform: translate3d(0, -100%, 0);
|
|
1747
1572
|
visibility: visible;
|
|
@@ -1752,9 +1577,7 @@ var slideInDown = keyframes69`
|
|
|
1752
1577
|
}
|
|
1753
1578
|
`;
|
|
1754
1579
|
|
|
1755
|
-
|
|
1756
|
-
import { keyframes as keyframes70 } from "@emotion/react";
|
|
1757
|
-
var slideInLeft = keyframes70`
|
|
1580
|
+
const slideInLeft = react.keyframes`
|
|
1758
1581
|
from {
|
|
1759
1582
|
transform: translate3d(-100%, 0, 0);
|
|
1760
1583
|
visibility: visible;
|
|
@@ -1765,9 +1588,7 @@ var slideInLeft = keyframes70`
|
|
|
1765
1588
|
}
|
|
1766
1589
|
`;
|
|
1767
1590
|
|
|
1768
|
-
|
|
1769
|
-
import { keyframes as keyframes71 } from "@emotion/react";
|
|
1770
|
-
var slideInRight = keyframes71`
|
|
1591
|
+
const slideInRight = react.keyframes`
|
|
1771
1592
|
from {
|
|
1772
1593
|
transform: translate3d(100%, 0, 0);
|
|
1773
1594
|
visibility: visible;
|
|
@@ -1778,9 +1599,7 @@ var slideInRight = keyframes71`
|
|
|
1778
1599
|
}
|
|
1779
1600
|
`;
|
|
1780
1601
|
|
|
1781
|
-
|
|
1782
|
-
import { keyframes as keyframes72 } from "@emotion/react";
|
|
1783
|
-
var slideInUp = keyframes72`
|
|
1602
|
+
const slideInUp = react.keyframes`
|
|
1784
1603
|
from {
|
|
1785
1604
|
transform: translate3d(0, 100%, 0);
|
|
1786
1605
|
visibility: visible;
|
|
@@ -1791,9 +1610,7 @@ var slideInUp = keyframes72`
|
|
|
1791
1610
|
}
|
|
1792
1611
|
`;
|
|
1793
1612
|
|
|
1794
|
-
|
|
1795
|
-
import { keyframes as keyframes73 } from "@emotion/react";
|
|
1796
|
-
var slideOutDown = keyframes73`
|
|
1613
|
+
const slideOutDown = react.keyframes`
|
|
1797
1614
|
from {
|
|
1798
1615
|
transform: translate3d(0, 0, 0);
|
|
1799
1616
|
}
|
|
@@ -1804,9 +1621,7 @@ var slideOutDown = keyframes73`
|
|
|
1804
1621
|
}
|
|
1805
1622
|
`;
|
|
1806
1623
|
|
|
1807
|
-
|
|
1808
|
-
import { keyframes as keyframes74 } from "@emotion/react";
|
|
1809
|
-
var slideOutLeft = keyframes74`
|
|
1624
|
+
const slideOutLeft = react.keyframes`
|
|
1810
1625
|
from {
|
|
1811
1626
|
transform: translate3d(0, 0, 0);
|
|
1812
1627
|
}
|
|
@@ -1817,9 +1632,7 @@ var slideOutLeft = keyframes74`
|
|
|
1817
1632
|
}
|
|
1818
1633
|
`;
|
|
1819
1634
|
|
|
1820
|
-
|
|
1821
|
-
import { keyframes as keyframes75 } from "@emotion/react";
|
|
1822
|
-
var slideOutRight = keyframes75`
|
|
1635
|
+
const slideOutRight = react.keyframes`
|
|
1823
1636
|
from {
|
|
1824
1637
|
transform: translate3d(0, 0, 0);
|
|
1825
1638
|
}
|
|
@@ -1830,9 +1643,7 @@ var slideOutRight = keyframes75`
|
|
|
1830
1643
|
}
|
|
1831
1644
|
`;
|
|
1832
1645
|
|
|
1833
|
-
|
|
1834
|
-
import { keyframes as keyframes76 } from "@emotion/react";
|
|
1835
|
-
var slideOutUp = keyframes76`
|
|
1646
|
+
const slideOutUp = react.keyframes`
|
|
1836
1647
|
from {
|
|
1837
1648
|
transform: translate3d(0, 0, 0);
|
|
1838
1649
|
}
|
|
@@ -1843,9 +1654,7 @@ var slideOutUp = keyframes76`
|
|
|
1843
1654
|
}
|
|
1844
1655
|
`;
|
|
1845
1656
|
|
|
1846
|
-
|
|
1847
|
-
import { jsx as jsx10 } from "@emotion/react/jsx-runtime";
|
|
1848
|
-
function getStyles7(reverse, direction) {
|
|
1657
|
+
function getStyles$1(reverse, direction) {
|
|
1849
1658
|
switch (direction) {
|
|
1850
1659
|
case "down":
|
|
1851
1660
|
return reverse ? slideOutDown : slideInDown;
|
|
@@ -1858,21 +1667,16 @@ function getStyles7(reverse, direction) {
|
|
|
1858
1667
|
return reverse ? slideOutLeft : slideInLeft;
|
|
1859
1668
|
}
|
|
1860
1669
|
}
|
|
1861
|
-
|
|
1670
|
+
const Slide = (props) => {
|
|
1862
1671
|
const { direction, reverse = false, ...rest } = props;
|
|
1863
|
-
const
|
|
1864
|
-
() =>
|
|
1672
|
+
const keyframes = react$1.useMemo(
|
|
1673
|
+
() => getStyles$1(reverse, direction),
|
|
1865
1674
|
[direction, reverse]
|
|
1866
1675
|
);
|
|
1867
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes, ...rest });
|
|
1868
1677
|
};
|
|
1869
1678
|
|
|
1870
|
-
|
|
1871
|
-
import { useMemo as useMemo9 } from "react";
|
|
1872
|
-
|
|
1873
|
-
// src/animations/zooming_entrances/zoomIn.ts
|
|
1874
|
-
import { keyframes as keyframes77 } from "@emotion/react";
|
|
1875
|
-
var zoomIn = keyframes77`
|
|
1679
|
+
const zoomIn = react.keyframes`
|
|
1876
1680
|
from {
|
|
1877
1681
|
opacity: 0;
|
|
1878
1682
|
transform: scale3d(0.3, 0.3, 0.3);
|
|
@@ -1883,9 +1687,7 @@ var zoomIn = keyframes77`
|
|
|
1883
1687
|
}
|
|
1884
1688
|
`;
|
|
1885
1689
|
|
|
1886
|
-
|
|
1887
|
-
import { keyframes as keyframes78 } from "@emotion/react";
|
|
1888
|
-
var zoomInDown = keyframes78`
|
|
1690
|
+
const zoomInDown = react.keyframes`
|
|
1889
1691
|
from {
|
|
1890
1692
|
opacity: 0;
|
|
1891
1693
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
|
|
@@ -1899,9 +1701,7 @@ var zoomInDown = keyframes78`
|
|
|
1899
1701
|
}
|
|
1900
1702
|
`;
|
|
1901
1703
|
|
|
1902
|
-
|
|
1903
|
-
import { keyframes as keyframes79 } from "@emotion/react";
|
|
1904
|
-
var zoomInLeft = keyframes79`
|
|
1704
|
+
const zoomInLeft = react.keyframes`
|
|
1905
1705
|
from {
|
|
1906
1706
|
opacity: 0;
|
|
1907
1707
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
|
|
@@ -1915,9 +1715,7 @@ var zoomInLeft = keyframes79`
|
|
|
1915
1715
|
}
|
|
1916
1716
|
`;
|
|
1917
1717
|
|
|
1918
|
-
|
|
1919
|
-
import { keyframes as keyframes80 } from "@emotion/react";
|
|
1920
|
-
var zoomInRight = keyframes80`
|
|
1718
|
+
const zoomInRight = react.keyframes`
|
|
1921
1719
|
from {
|
|
1922
1720
|
opacity: 0;
|
|
1923
1721
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
|
|
@@ -1931,9 +1729,7 @@ var zoomInRight = keyframes80`
|
|
|
1931
1729
|
}
|
|
1932
1730
|
`;
|
|
1933
1731
|
|
|
1934
|
-
|
|
1935
|
-
import { keyframes as keyframes81 } from "@emotion/react";
|
|
1936
|
-
var zoomInUp = keyframes81`
|
|
1732
|
+
const zoomInUp = react.keyframes`
|
|
1937
1733
|
from {
|
|
1938
1734
|
opacity: 0;
|
|
1939
1735
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
|
|
@@ -1947,9 +1743,7 @@ var zoomInUp = keyframes81`
|
|
|
1947
1743
|
}
|
|
1948
1744
|
`;
|
|
1949
1745
|
|
|
1950
|
-
|
|
1951
|
-
import { keyframes as keyframes82 } from "@emotion/react";
|
|
1952
|
-
var zoomOut = keyframes82`
|
|
1746
|
+
const zoomOut = react.keyframes`
|
|
1953
1747
|
from {
|
|
1954
1748
|
opacity: 1;
|
|
1955
1749
|
}
|
|
@@ -1964,9 +1758,7 @@ var zoomOut = keyframes82`
|
|
|
1964
1758
|
}
|
|
1965
1759
|
`;
|
|
1966
1760
|
|
|
1967
|
-
|
|
1968
|
-
import { keyframes as keyframes83 } from "@emotion/react";
|
|
1969
|
-
var zoomOutDown = keyframes83`
|
|
1761
|
+
const zoomOutDown = react.keyframes`
|
|
1970
1762
|
40% {
|
|
1971
1763
|
opacity: 1;
|
|
1972
1764
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
|
|
@@ -1980,9 +1772,7 @@ var zoomOutDown = keyframes83`
|
|
|
1980
1772
|
}
|
|
1981
1773
|
`;
|
|
1982
1774
|
|
|
1983
|
-
|
|
1984
|
-
import { keyframes as keyframes84 } from "@emotion/react";
|
|
1985
|
-
var zoomOutLeft = keyframes84`
|
|
1775
|
+
const zoomOutLeft = react.keyframes`
|
|
1986
1776
|
40% {
|
|
1987
1777
|
opacity: 1;
|
|
1988
1778
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);
|
|
@@ -1994,9 +1784,7 @@ var zoomOutLeft = keyframes84`
|
|
|
1994
1784
|
}
|
|
1995
1785
|
`;
|
|
1996
1786
|
|
|
1997
|
-
|
|
1998
|
-
import { keyframes as keyframes85 } from "@emotion/react";
|
|
1999
|
-
var zoomOutRight = keyframes85`
|
|
1787
|
+
const zoomOutRight = react.keyframes`
|
|
2000
1788
|
40% {
|
|
2001
1789
|
opacity: 1;
|
|
2002
1790
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);
|
|
@@ -2008,9 +1796,7 @@ var zoomOutRight = keyframes85`
|
|
|
2008
1796
|
}
|
|
2009
1797
|
`;
|
|
2010
1798
|
|
|
2011
|
-
|
|
2012
|
-
import { keyframes as keyframes86 } from "@emotion/react";
|
|
2013
|
-
var zoomOutUp = keyframes86`
|
|
1799
|
+
const zoomOutUp = react.keyframes`
|
|
2014
1800
|
40% {
|
|
2015
1801
|
opacity: 1;
|
|
2016
1802
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
|
|
@@ -2024,9 +1810,7 @@ var zoomOutUp = keyframes86`
|
|
|
2024
1810
|
}
|
|
2025
1811
|
`;
|
|
2026
1812
|
|
|
2027
|
-
|
|
2028
|
-
import { jsx as jsx11 } from "@emotion/react/jsx-runtime";
|
|
2029
|
-
function getStyles8(reverse, direction) {
|
|
1813
|
+
function getStyles(reverse, direction) {
|
|
2030
1814
|
switch (direction) {
|
|
2031
1815
|
case "down":
|
|
2032
1816
|
return reverse ? zoomOutDown : zoomInDown;
|
|
@@ -2040,26 +1824,25 @@ function getStyles8(reverse, direction) {
|
|
|
2040
1824
|
return reverse ? zoomOut : zoomIn;
|
|
2041
1825
|
}
|
|
2042
1826
|
}
|
|
2043
|
-
|
|
1827
|
+
const Zoom = (props) => {
|
|
2044
1828
|
const { direction, reverse = false, ...rest } = props;
|
|
2045
|
-
const
|
|
2046
|
-
() =>
|
|
1829
|
+
const keyframes = react$1.useMemo(
|
|
1830
|
+
() => getStyles(reverse, direction),
|
|
2047
1831
|
[direction, reverse]
|
|
2048
1832
|
);
|
|
2049
|
-
return /* @__PURE__ */
|
|
2050
|
-
};
|
|
2051
|
-
export {
|
|
2052
|
-
AttentionSeeker,
|
|
2053
|
-
Bounce,
|
|
2054
|
-
Fade,
|
|
2055
|
-
Flip,
|
|
2056
|
-
Hinge,
|
|
2057
|
-
JackInTheBox,
|
|
2058
|
-
Reveal,
|
|
2059
|
-
Roll,
|
|
2060
|
-
Rotate,
|
|
2061
|
-
Slide,
|
|
2062
|
-
Zoom,
|
|
2063
|
-
Reveal as default
|
|
1833
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Reveal, { keyframes, ...rest });
|
|
2064
1834
|
};
|
|
2065
|
-
|
|
1835
|
+
|
|
1836
|
+
exports.AttentionSeeker = AttentionSeeker;
|
|
1837
|
+
exports.Bounce = Bounce;
|
|
1838
|
+
exports.Fade = Fade;
|
|
1839
|
+
exports.Flip = Flip;
|
|
1840
|
+
exports.Hinge = Hinge;
|
|
1841
|
+
exports.JackInTheBox = JackInTheBox;
|
|
1842
|
+
exports.Reveal = Reveal;
|
|
1843
|
+
exports.Roll = Roll;
|
|
1844
|
+
exports.Rotate = Rotate;
|
|
1845
|
+
exports.Slide = Slide;
|
|
1846
|
+
exports.Zoom = Zoom;
|
|
1847
|
+
exports.default = Reveal;
|
|
1848
|
+
//# sourceMappingURL=index.cjs.map
|