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
package/dist/index.js
CHANGED
|
@@ -1,46 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
AttentionSeeker: () => AttentionSeeker,
|
|
24
|
-
Bounce: () => Bounce,
|
|
25
|
-
Fade: () => Fade,
|
|
26
|
-
Flip: () => Flip,
|
|
27
|
-
Hinge: () => Hinge,
|
|
28
|
-
JackInTheBox: () => JackInTheBox,
|
|
29
|
-
Reveal: () => Reveal,
|
|
30
|
-
Roll: () => Roll,
|
|
31
|
-
Rotate: () => Rotate,
|
|
32
|
-
Slide: () => Slide,
|
|
33
|
-
Zoom: () => Zoom,
|
|
34
|
-
default: () => Reveal
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(src_exports);
|
|
37
|
-
|
|
38
|
-
// src/components/AttentionSeeker.tsx
|
|
39
|
-
var import_react30 = require("react");
|
|
40
|
-
|
|
41
|
-
// src/animations/attention_seekers/bounce.ts
|
|
42
|
-
var import_react = require("@emotion/react");
|
|
43
|
-
var bounce = import_react.keyframes`
|
|
1
|
+
import { jsx, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
|
+
import { keyframes, css, ClassNames } from '@emotion/react';
|
|
3
|
+
import { useMemo, Children, isValidElement } from 'react';
|
|
4
|
+
import { InView, useInView } from 'react-intersection-observer';
|
|
5
|
+
import { isFragment } from 'react-is';
|
|
6
|
+
|
|
7
|
+
const bounce = keyframes`
|
|
44
8
|
from,
|
|
45
9
|
20%,
|
|
46
10
|
53%,
|
|
@@ -70,9 +34,7 @@ var bounce = import_react.keyframes`
|
|
|
70
34
|
}
|
|
71
35
|
`;
|
|
72
36
|
|
|
73
|
-
|
|
74
|
-
var import_react2 = require("@emotion/react");
|
|
75
|
-
var flash = import_react2.keyframes`
|
|
37
|
+
const flash = keyframes`
|
|
76
38
|
from,
|
|
77
39
|
50%,
|
|
78
40
|
to {
|
|
@@ -85,9 +47,7 @@ var flash = import_react2.keyframes`
|
|
|
85
47
|
}
|
|
86
48
|
`;
|
|
87
49
|
|
|
88
|
-
|
|
89
|
-
var import_react3 = require("@emotion/react");
|
|
90
|
-
var headShake = import_react3.keyframes`
|
|
50
|
+
const headShake = keyframes`
|
|
91
51
|
0% {
|
|
92
52
|
transform: translateX(0);
|
|
93
53
|
}
|
|
@@ -113,9 +73,7 @@ var headShake = import_react3.keyframes`
|
|
|
113
73
|
}
|
|
114
74
|
`;
|
|
115
75
|
|
|
116
|
-
|
|
117
|
-
var import_react4 = require("@emotion/react");
|
|
118
|
-
var heartBeat = import_react4.keyframes`
|
|
76
|
+
const heartBeat = keyframes`
|
|
119
77
|
0% {
|
|
120
78
|
transform: scale(1);
|
|
121
79
|
}
|
|
@@ -137,9 +95,7 @@ var heartBeat = import_react4.keyframes`
|
|
|
137
95
|
}
|
|
138
96
|
`;
|
|
139
97
|
|
|
140
|
-
|
|
141
|
-
var import_react5 = require("@emotion/react");
|
|
142
|
-
var jello = import_react5.keyframes`
|
|
98
|
+
const jello = keyframes`
|
|
143
99
|
from,
|
|
144
100
|
11.1%,
|
|
145
101
|
to {
|
|
@@ -175,9 +131,7 @@ var jello = import_react5.keyframes`
|
|
|
175
131
|
}
|
|
176
132
|
`;
|
|
177
133
|
|
|
178
|
-
|
|
179
|
-
var import_react6 = require("@emotion/react");
|
|
180
|
-
var pulse = import_react6.keyframes`
|
|
134
|
+
const pulse = keyframes`
|
|
181
135
|
from {
|
|
182
136
|
transform: scale3d(1, 1, 1);
|
|
183
137
|
}
|
|
@@ -191,9 +145,7 @@ var pulse = import_react6.keyframes`
|
|
|
191
145
|
}
|
|
192
146
|
`;
|
|
193
147
|
|
|
194
|
-
|
|
195
|
-
var import_react7 = require("@emotion/react");
|
|
196
|
-
var rubberBand = import_react7.keyframes`
|
|
148
|
+
const rubberBand = keyframes`
|
|
197
149
|
from {
|
|
198
150
|
transform: scale3d(1, 1, 1);
|
|
199
151
|
}
|
|
@@ -223,9 +175,7 @@ var rubberBand = import_react7.keyframes`
|
|
|
223
175
|
}
|
|
224
176
|
`;
|
|
225
177
|
|
|
226
|
-
|
|
227
|
-
var import_react8 = require("@emotion/react");
|
|
228
|
-
var shake = import_react8.keyframes`
|
|
178
|
+
const shake = keyframes`
|
|
229
179
|
from,
|
|
230
180
|
to {
|
|
231
181
|
transform: translate3d(0, 0, 0);
|
|
@@ -247,9 +197,7 @@ var shake = import_react8.keyframes`
|
|
|
247
197
|
}
|
|
248
198
|
`;
|
|
249
199
|
|
|
250
|
-
|
|
251
|
-
var import_react9 = require("@emotion/react");
|
|
252
|
-
var shakeX = import_react9.keyframes`
|
|
200
|
+
const shakeX = keyframes`
|
|
253
201
|
from,
|
|
254
202
|
to {
|
|
255
203
|
transform: translate3d(0, 0, 0);
|
|
@@ -271,9 +219,7 @@ var shakeX = import_react9.keyframes`
|
|
|
271
219
|
}
|
|
272
220
|
`;
|
|
273
221
|
|
|
274
|
-
|
|
275
|
-
var import_react10 = require("@emotion/react");
|
|
276
|
-
var shakeY = import_react10.keyframes`
|
|
222
|
+
const shakeY = keyframes`
|
|
277
223
|
from,
|
|
278
224
|
to {
|
|
279
225
|
transform: translate3d(0, 0, 0);
|
|
@@ -295,9 +241,7 @@ var shakeY = import_react10.keyframes`
|
|
|
295
241
|
}
|
|
296
242
|
`;
|
|
297
243
|
|
|
298
|
-
|
|
299
|
-
var import_react11 = require("@emotion/react");
|
|
300
|
-
var swing = import_react11.keyframes`
|
|
244
|
+
const swing = keyframes`
|
|
301
245
|
20% {
|
|
302
246
|
transform: rotate3d(0, 0, 1, 15deg);
|
|
303
247
|
}
|
|
@@ -319,9 +263,7 @@ var swing = import_react11.keyframes`
|
|
|
319
263
|
}
|
|
320
264
|
`;
|
|
321
265
|
|
|
322
|
-
|
|
323
|
-
var import_react12 = require("@emotion/react");
|
|
324
|
-
var tada = import_react12.keyframes`
|
|
266
|
+
const tada = keyframes`
|
|
325
267
|
from {
|
|
326
268
|
transform: scale3d(1, 1, 1);
|
|
327
269
|
}
|
|
@@ -349,9 +291,7 @@ var tada = import_react12.keyframes`
|
|
|
349
291
|
}
|
|
350
292
|
`;
|
|
351
293
|
|
|
352
|
-
|
|
353
|
-
var import_react13 = require("@emotion/react");
|
|
354
|
-
var wobble = import_react13.keyframes`
|
|
294
|
+
const wobble = keyframes`
|
|
355
295
|
from {
|
|
356
296
|
transform: translate3d(0, 0, 0);
|
|
357
297
|
}
|
|
@@ -381,15 +321,7 @@ var wobble = import_react13.keyframes`
|
|
|
381
321
|
}
|
|
382
322
|
`;
|
|
383
323
|
|
|
384
|
-
|
|
385
|
-
var import_react28 = require("@emotion/react");
|
|
386
|
-
var import_react29 = require("react");
|
|
387
|
-
var import_react_intersection_observer = require("react-intersection-observer");
|
|
388
|
-
var import_react_is = require("react-is");
|
|
389
|
-
|
|
390
|
-
// src/animations/fading_entrances/fadeIn.ts
|
|
391
|
-
var import_react14 = require("@emotion/react");
|
|
392
|
-
var fadeIn = import_react14.keyframes`
|
|
324
|
+
const fadeIn = keyframes`
|
|
393
325
|
from {
|
|
394
326
|
opacity: 0;
|
|
395
327
|
}
|
|
@@ -399,9 +331,7 @@ var fadeIn = import_react14.keyframes`
|
|
|
399
331
|
}
|
|
400
332
|
`;
|
|
401
333
|
|
|
402
|
-
|
|
403
|
-
var import_react15 = require("@emotion/react");
|
|
404
|
-
var fadeInBottomLeft = import_react15.keyframes`
|
|
334
|
+
const fadeInBottomLeft = keyframes`
|
|
405
335
|
from {
|
|
406
336
|
opacity: 0;
|
|
407
337
|
transform: translate3d(-100%, 100%, 0);
|
|
@@ -413,9 +343,7 @@ var fadeInBottomLeft = import_react15.keyframes`
|
|
|
413
343
|
}
|
|
414
344
|
`;
|
|
415
345
|
|
|
416
|
-
|
|
417
|
-
var import_react16 = require("@emotion/react");
|
|
418
|
-
var fadeInBottomRight = import_react16.keyframes`
|
|
346
|
+
const fadeInBottomRight = keyframes`
|
|
419
347
|
from {
|
|
420
348
|
opacity: 0;
|
|
421
349
|
transform: translate3d(100%, 100%, 0);
|
|
@@ -427,9 +355,7 @@ var fadeInBottomRight = import_react16.keyframes`
|
|
|
427
355
|
}
|
|
428
356
|
`;
|
|
429
357
|
|
|
430
|
-
|
|
431
|
-
var import_react17 = require("@emotion/react");
|
|
432
|
-
var fadeInDown = import_react17.keyframes`
|
|
358
|
+
const fadeInDown = keyframes`
|
|
433
359
|
from {
|
|
434
360
|
opacity: 0;
|
|
435
361
|
transform: translate3d(0, -100%, 0);
|
|
@@ -441,9 +367,7 @@ var fadeInDown = import_react17.keyframes`
|
|
|
441
367
|
}
|
|
442
368
|
`;
|
|
443
369
|
|
|
444
|
-
|
|
445
|
-
var import_react18 = require("@emotion/react");
|
|
446
|
-
var fadeInDownBig = import_react18.keyframes`
|
|
370
|
+
const fadeInDownBig = keyframes`
|
|
447
371
|
from {
|
|
448
372
|
opacity: 0;
|
|
449
373
|
transform: translate3d(0, -2000px, 0);
|
|
@@ -455,9 +379,7 @@ var fadeInDownBig = import_react18.keyframes`
|
|
|
455
379
|
}
|
|
456
380
|
`;
|
|
457
381
|
|
|
458
|
-
|
|
459
|
-
var import_react19 = require("@emotion/react");
|
|
460
|
-
var fadeInLeft = import_react19.keyframes`
|
|
382
|
+
const fadeInLeft = keyframes`
|
|
461
383
|
from {
|
|
462
384
|
opacity: 0;
|
|
463
385
|
transform: translate3d(-100%, 0, 0);
|
|
@@ -469,9 +391,7 @@ var fadeInLeft = import_react19.keyframes`
|
|
|
469
391
|
}
|
|
470
392
|
`;
|
|
471
393
|
|
|
472
|
-
|
|
473
|
-
var import_react20 = require("@emotion/react");
|
|
474
|
-
var fadeInLeftBig = import_react20.keyframes`
|
|
394
|
+
const fadeInLeftBig = keyframes`
|
|
475
395
|
from {
|
|
476
396
|
opacity: 0;
|
|
477
397
|
transform: translate3d(-2000px, 0, 0);
|
|
@@ -483,9 +403,7 @@ var fadeInLeftBig = import_react20.keyframes`
|
|
|
483
403
|
}
|
|
484
404
|
`;
|
|
485
405
|
|
|
486
|
-
|
|
487
|
-
var import_react21 = require("@emotion/react");
|
|
488
|
-
var fadeInRight = import_react21.keyframes`
|
|
406
|
+
const fadeInRight = keyframes`
|
|
489
407
|
from {
|
|
490
408
|
opacity: 0;
|
|
491
409
|
transform: translate3d(100%, 0, 0);
|
|
@@ -497,9 +415,7 @@ var fadeInRight = import_react21.keyframes`
|
|
|
497
415
|
}
|
|
498
416
|
`;
|
|
499
417
|
|
|
500
|
-
|
|
501
|
-
var import_react22 = require("@emotion/react");
|
|
502
|
-
var fadeInRightBig = import_react22.keyframes`
|
|
418
|
+
const fadeInRightBig = keyframes`
|
|
503
419
|
from {
|
|
504
420
|
opacity: 0;
|
|
505
421
|
transform: translate3d(2000px, 0, 0);
|
|
@@ -511,9 +427,7 @@ var fadeInRightBig = import_react22.keyframes`
|
|
|
511
427
|
}
|
|
512
428
|
`;
|
|
513
429
|
|
|
514
|
-
|
|
515
|
-
var import_react23 = require("@emotion/react");
|
|
516
|
-
var fadeInTopLeft = import_react23.keyframes`
|
|
430
|
+
const fadeInTopLeft = keyframes`
|
|
517
431
|
from {
|
|
518
432
|
opacity: 0;
|
|
519
433
|
transform: translate3d(-100%, -100%, 0);
|
|
@@ -525,9 +439,7 @@ var fadeInTopLeft = import_react23.keyframes`
|
|
|
525
439
|
}
|
|
526
440
|
`;
|
|
527
441
|
|
|
528
|
-
|
|
529
|
-
var import_react24 = require("@emotion/react");
|
|
530
|
-
var fadeInTopRight = import_react24.keyframes`
|
|
442
|
+
const fadeInTopRight = keyframes`
|
|
531
443
|
from {
|
|
532
444
|
opacity: 0;
|
|
533
445
|
transform: translate3d(100%, -100%, 0);
|
|
@@ -539,9 +451,7 @@ var fadeInTopRight = import_react24.keyframes`
|
|
|
539
451
|
}
|
|
540
452
|
`;
|
|
541
453
|
|
|
542
|
-
|
|
543
|
-
var import_react25 = require("@emotion/react");
|
|
544
|
-
var fadeInUp = import_react25.keyframes`
|
|
454
|
+
const fadeInUp = keyframes`
|
|
545
455
|
from {
|
|
546
456
|
opacity: 0;
|
|
547
457
|
transform: translate3d(0, 100%, 0);
|
|
@@ -553,9 +463,7 @@ var fadeInUp = import_react25.keyframes`
|
|
|
553
463
|
}
|
|
554
464
|
`;
|
|
555
465
|
|
|
556
|
-
|
|
557
|
-
var import_react26 = require("@emotion/react");
|
|
558
|
-
var fadeInUpBig = import_react26.keyframes`
|
|
466
|
+
const fadeInUpBig = keyframes`
|
|
559
467
|
from {
|
|
560
468
|
opacity: 0;
|
|
561
469
|
transform: translate3d(0, 2000px, 0);
|
|
@@ -567,20 +475,18 @@ var fadeInUpBig = import_react26.keyframes`
|
|
|
567
475
|
}
|
|
568
476
|
`;
|
|
569
477
|
|
|
570
|
-
// src/utils/animations.ts
|
|
571
|
-
var import_react27 = require("@emotion/react");
|
|
572
478
|
function getAnimationCss({
|
|
573
479
|
duration = 1e3,
|
|
574
480
|
delay = 0,
|
|
575
481
|
timingFunction = "ease",
|
|
576
|
-
keyframes
|
|
482
|
+
keyframes = fadeInLeft,
|
|
577
483
|
iterationCount = 1
|
|
578
484
|
}) {
|
|
579
|
-
return
|
|
485
|
+
return css`
|
|
580
486
|
animation-duration: ${duration}ms;
|
|
581
487
|
animation-timing-function: ${timingFunction};
|
|
582
488
|
animation-delay: ${delay}ms;
|
|
583
|
-
animation-name: ${
|
|
489
|
+
animation-name: ${keyframes};
|
|
584
490
|
animation-direction: normal;
|
|
585
491
|
animation-fill-mode: both;
|
|
586
492
|
animation-iteration-count: ${iterationCount};
|
|
@@ -591,7 +497,6 @@ function getAnimationCss({
|
|
|
591
497
|
`;
|
|
592
498
|
}
|
|
593
499
|
|
|
594
|
-
// src/utils/guards.ts
|
|
595
500
|
function isNullable(a) {
|
|
596
501
|
return a == void 0;
|
|
597
502
|
}
|
|
@@ -599,7 +504,6 @@ function isStringLike(value) {
|
|
|
599
504
|
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
600
505
|
}
|
|
601
506
|
|
|
602
|
-
// src/utils/patterns.ts
|
|
603
507
|
function matchIf(onTrue, onFalse) {
|
|
604
508
|
return (condition) => condition ? onTrue() : onFalse();
|
|
605
509
|
}
|
|
@@ -607,19 +511,17 @@ function matchIfOrNull(onTrue) {
|
|
|
607
511
|
return matchIf(onTrue, () => null);
|
|
608
512
|
}
|
|
609
513
|
|
|
610
|
-
// src/Reveal.tsx
|
|
611
|
-
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
612
514
|
function hideWhen(condition) {
|
|
613
515
|
return matchIfOrNull(() => ({ opacity: 0 }))(condition);
|
|
614
516
|
}
|
|
615
|
-
|
|
517
|
+
const Reveal = (props) => {
|
|
616
518
|
const {
|
|
617
519
|
cascade = false,
|
|
618
520
|
damping = 0.5,
|
|
619
521
|
delay = 0,
|
|
620
522
|
duration = 1e3,
|
|
621
523
|
fraction = 0,
|
|
622
|
-
keyframes
|
|
524
|
+
keyframes = fadeInLeft,
|
|
623
525
|
triggerOnce = false,
|
|
624
526
|
className,
|
|
625
527
|
style,
|
|
@@ -628,43 +530,43 @@ var Reveal = (props) => {
|
|
|
628
530
|
children,
|
|
629
531
|
onVisibilityChange
|
|
630
532
|
} = props;
|
|
631
|
-
const animationStyles =
|
|
533
|
+
const animationStyles = useMemo(
|
|
632
534
|
() => getAnimationCss({
|
|
633
|
-
keyframes
|
|
535
|
+
keyframes,
|
|
634
536
|
duration
|
|
635
537
|
}),
|
|
636
|
-
[duration,
|
|
538
|
+
[duration, keyframes]
|
|
637
539
|
);
|
|
638
540
|
if (isNullable(children))
|
|
639
541
|
return null;
|
|
640
542
|
if (isStringLike(children))
|
|
641
|
-
return /* @__PURE__ */
|
|
642
|
-
if (
|
|
643
|
-
return /* @__PURE__ */
|
|
644
|
-
return /* @__PURE__ */
|
|
645
|
-
if (!
|
|
543
|
+
return /* @__PURE__ */ jsx(TextReveal, { ...props, animationStyles, children: String(children) });
|
|
544
|
+
if (isFragment(children))
|
|
545
|
+
return /* @__PURE__ */ jsx(FragmentReveal, { ...props, animationStyles });
|
|
546
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (node, index) => {
|
|
547
|
+
if (!isValidElement(node))
|
|
646
548
|
return null;
|
|
647
549
|
const nodeDelay = delay + (cascade ? index * duration * damping : 0);
|
|
648
550
|
switch (node.type) {
|
|
649
551
|
case "ol":
|
|
650
552
|
case "ul":
|
|
651
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
652
554
|
node.type,
|
|
653
555
|
{
|
|
654
556
|
...node.props,
|
|
655
557
|
className: cx(className, node.props.className),
|
|
656
558
|
style: Object.assign({}, style, node.props.style),
|
|
657
|
-
children: /* @__PURE__ */
|
|
559
|
+
children: /* @__PURE__ */ jsx(Reveal, { ...props, children: node.props.children })
|
|
658
560
|
}
|
|
659
561
|
) });
|
|
660
562
|
case "li":
|
|
661
|
-
return /* @__PURE__ */
|
|
662
|
-
|
|
563
|
+
return /* @__PURE__ */ jsx(
|
|
564
|
+
InView,
|
|
663
565
|
{
|
|
664
566
|
threshold: fraction,
|
|
665
567
|
triggerOnce,
|
|
666
568
|
onChange: onVisibilityChange,
|
|
667
|
-
children: ({ inView, ref }) => /* @__PURE__ */
|
|
569
|
+
children: ({ inView, ref }) => /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
668
570
|
node.type,
|
|
669
571
|
{
|
|
670
572
|
...node.props,
|
|
@@ -685,13 +587,13 @@ var Reveal = (props) => {
|
|
|
685
587
|
}
|
|
686
588
|
);
|
|
687
589
|
default:
|
|
688
|
-
return /* @__PURE__ */
|
|
689
|
-
|
|
590
|
+
return /* @__PURE__ */ jsx(
|
|
591
|
+
InView,
|
|
690
592
|
{
|
|
691
593
|
threshold: fraction,
|
|
692
594
|
triggerOnce,
|
|
693
595
|
onChange: onVisibilityChange,
|
|
694
|
-
children: ({ inView, ref }) => /* @__PURE__ */
|
|
596
|
+
children: ({ inView, ref }) => /* @__PURE__ */ jsx(
|
|
695
597
|
"div",
|
|
696
598
|
{
|
|
697
599
|
ref,
|
|
@@ -700,7 +602,7 @@ var Reveal = (props) => {
|
|
|
700
602
|
style: Object.assign({}, style, hideWhen(!inView), {
|
|
701
603
|
animationDelay: nodeDelay + "ms"
|
|
702
604
|
}),
|
|
703
|
-
children: /* @__PURE__ */
|
|
605
|
+
children: /* @__PURE__ */ jsx(ClassNames, { children: ({ cx }) => /* @__PURE__ */ jsx(
|
|
704
606
|
node.type,
|
|
705
607
|
{
|
|
706
608
|
...node.props,
|
|
@@ -719,11 +621,11 @@ var Reveal = (props) => {
|
|
|
719
621
|
}
|
|
720
622
|
}) });
|
|
721
623
|
};
|
|
722
|
-
|
|
624
|
+
const textBaseStyles = {
|
|
723
625
|
display: "inline-block",
|
|
724
626
|
whiteSpace: "pre"
|
|
725
627
|
};
|
|
726
|
-
|
|
628
|
+
const TextReveal = (props) => {
|
|
727
629
|
const {
|
|
728
630
|
animationStyles,
|
|
729
631
|
cascade = false,
|
|
@@ -737,19 +639,19 @@ var TextReveal = (props) => {
|
|
|
737
639
|
children,
|
|
738
640
|
onVisibilityChange
|
|
739
641
|
} = props;
|
|
740
|
-
const { ref, inView } =
|
|
642
|
+
const { ref, inView } = useInView({
|
|
741
643
|
triggerOnce,
|
|
742
644
|
threshold: fraction,
|
|
743
645
|
onChange: onVisibilityChange
|
|
744
646
|
});
|
|
745
647
|
return matchIf(
|
|
746
|
-
() => /* @__PURE__ */
|
|
648
|
+
() => /* @__PURE__ */ jsx(
|
|
747
649
|
"div",
|
|
748
650
|
{
|
|
749
651
|
ref,
|
|
750
652
|
className,
|
|
751
653
|
style: Object.assign({}, style, textBaseStyles),
|
|
752
|
-
children: children.split("").map((char, index) => /* @__PURE__ */
|
|
654
|
+
children: children.split("").map((char, index) => /* @__PURE__ */ jsx(
|
|
753
655
|
"span",
|
|
754
656
|
{
|
|
755
657
|
css: matchIfOrNull(() => animationStyles)(inView),
|
|
@@ -762,10 +664,10 @@ var TextReveal = (props) => {
|
|
|
762
664
|
))
|
|
763
665
|
}
|
|
764
666
|
),
|
|
765
|
-
() => /* @__PURE__ */
|
|
667
|
+
() => /* @__PURE__ */ jsx(FragmentReveal, { ...props, children })
|
|
766
668
|
)(cascade);
|
|
767
669
|
};
|
|
768
|
-
|
|
670
|
+
const FragmentReveal = (props) => {
|
|
769
671
|
const {
|
|
770
672
|
animationStyles,
|
|
771
673
|
fraction = 0,
|
|
@@ -775,12 +677,12 @@ var FragmentReveal = (props) => {
|
|
|
775
677
|
children,
|
|
776
678
|
onVisibilityChange
|
|
777
679
|
} = props;
|
|
778
|
-
const { ref, inView } =
|
|
680
|
+
const { ref, inView } = useInView({
|
|
779
681
|
triggerOnce,
|
|
780
682
|
threshold: fraction,
|
|
781
683
|
onChange: onVisibilityChange
|
|
782
684
|
});
|
|
783
|
-
return /* @__PURE__ */
|
|
685
|
+
return /* @__PURE__ */ jsx(
|
|
784
686
|
"div",
|
|
785
687
|
{
|
|
786
688
|
ref,
|
|
@@ -792,9 +694,7 @@ var FragmentReveal = (props) => {
|
|
|
792
694
|
);
|
|
793
695
|
};
|
|
794
696
|
|
|
795
|
-
|
|
796
|
-
var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
|
|
797
|
-
function getStyles(effect) {
|
|
697
|
+
function getStyles$7(effect) {
|
|
798
698
|
switch (effect) {
|
|
799
699
|
case "bounce":
|
|
800
700
|
return [bounce, { transformOrigin: "center bottom" }];
|
|
@@ -824,25 +724,20 @@ function getStyles(effect) {
|
|
|
824
724
|
return [wobble];
|
|
825
725
|
}
|
|
826
726
|
}
|
|
827
|
-
|
|
727
|
+
const AttentionSeeker = (props) => {
|
|
828
728
|
const { effect = "bounce", style, ...rest } = props;
|
|
829
|
-
const [
|
|
830
|
-
return /* @__PURE__ */
|
|
729
|
+
const [keyframes, animationCss] = useMemo(() => getStyles$7(effect), [effect]);
|
|
730
|
+
return /* @__PURE__ */ jsx(
|
|
831
731
|
Reveal,
|
|
832
732
|
{
|
|
833
|
-
keyframes
|
|
834
|
-
style: Object.assign({}, style,
|
|
733
|
+
keyframes,
|
|
734
|
+
style: Object.assign({}, style, animationCss),
|
|
835
735
|
...rest
|
|
836
736
|
}
|
|
837
737
|
);
|
|
838
738
|
};
|
|
839
739
|
|
|
840
|
-
|
|
841
|
-
var import_react41 = require("react");
|
|
842
|
-
|
|
843
|
-
// src/animations/bouncing_entrances/bounceIn.ts
|
|
844
|
-
var import_react31 = require("@emotion/react");
|
|
845
|
-
var bounceIn = import_react31.keyframes`
|
|
740
|
+
const bounceIn = keyframes`
|
|
846
741
|
from,
|
|
847
742
|
20%,
|
|
848
743
|
40%,
|
|
@@ -880,9 +775,7 @@ var bounceIn = import_react31.keyframes`
|
|
|
880
775
|
}
|
|
881
776
|
`;
|
|
882
777
|
|
|
883
|
-
|
|
884
|
-
var import_react32 = require("@emotion/react");
|
|
885
|
-
var bounceInDown = import_react32.keyframes`
|
|
778
|
+
const bounceInDown = keyframes`
|
|
886
779
|
from,
|
|
887
780
|
60%,
|
|
888
781
|
75%,
|
|
@@ -914,9 +807,7 @@ var bounceInDown = import_react32.keyframes`
|
|
|
914
807
|
}
|
|
915
808
|
`;
|
|
916
809
|
|
|
917
|
-
|
|
918
|
-
var import_react33 = require("@emotion/react");
|
|
919
|
-
var bounceInLeft = import_react33.keyframes`
|
|
810
|
+
const bounceInLeft = keyframes`
|
|
920
811
|
from,
|
|
921
812
|
60%,
|
|
922
813
|
75%,
|
|
@@ -948,9 +839,7 @@ var bounceInLeft = import_react33.keyframes`
|
|
|
948
839
|
}
|
|
949
840
|
`;
|
|
950
841
|
|
|
951
|
-
|
|
952
|
-
var import_react34 = require("@emotion/react");
|
|
953
|
-
var bounceInRight = import_react34.keyframes`
|
|
842
|
+
const bounceInRight = keyframes`
|
|
954
843
|
from,
|
|
955
844
|
60%,
|
|
956
845
|
75%,
|
|
@@ -982,9 +871,7 @@ var bounceInRight = import_react34.keyframes`
|
|
|
982
871
|
}
|
|
983
872
|
`;
|
|
984
873
|
|
|
985
|
-
|
|
986
|
-
var import_react35 = require("@emotion/react");
|
|
987
|
-
var bounceInUp = import_react35.keyframes`
|
|
874
|
+
const bounceInUp = keyframes`
|
|
988
875
|
from,
|
|
989
876
|
60%,
|
|
990
877
|
75%,
|
|
@@ -1016,9 +903,7 @@ var bounceInUp = import_react35.keyframes`
|
|
|
1016
903
|
}
|
|
1017
904
|
`;
|
|
1018
905
|
|
|
1019
|
-
|
|
1020
|
-
var import_react36 = require("@emotion/react");
|
|
1021
|
-
var bounceOut = import_react36.keyframes`
|
|
906
|
+
const bounceOut = keyframes`
|
|
1022
907
|
20% {
|
|
1023
908
|
transform: scale3d(0.9, 0.9, 0.9);
|
|
1024
909
|
}
|
|
@@ -1035,9 +920,7 @@ var bounceOut = import_react36.keyframes`
|
|
|
1035
920
|
}
|
|
1036
921
|
`;
|
|
1037
922
|
|
|
1038
|
-
|
|
1039
|
-
var import_react37 = require("@emotion/react");
|
|
1040
|
-
var bounceOutDown = import_react37.keyframes`
|
|
923
|
+
const bounceOutDown = keyframes`
|
|
1041
924
|
20% {
|
|
1042
925
|
transform: translate3d(0, 10px, 0) scaleY(0.985);
|
|
1043
926
|
}
|
|
@@ -1054,9 +937,7 @@ var bounceOutDown = import_react37.keyframes`
|
|
|
1054
937
|
}
|
|
1055
938
|
`;
|
|
1056
939
|
|
|
1057
|
-
|
|
1058
|
-
var import_react38 = require("@emotion/react");
|
|
1059
|
-
var bounceOutLeft = import_react38.keyframes`
|
|
940
|
+
const bounceOutLeft = keyframes`
|
|
1060
941
|
20% {
|
|
1061
942
|
opacity: 1;
|
|
1062
943
|
transform: translate3d(20px, 0, 0) scaleX(0.9);
|
|
@@ -1068,9 +949,7 @@ var bounceOutLeft = import_react38.keyframes`
|
|
|
1068
949
|
}
|
|
1069
950
|
`;
|
|
1070
951
|
|
|
1071
|
-
|
|
1072
|
-
var import_react39 = require("@emotion/react");
|
|
1073
|
-
var bounceOutRight = import_react39.keyframes`
|
|
952
|
+
const bounceOutRight = keyframes`
|
|
1074
953
|
20% {
|
|
1075
954
|
opacity: 1;
|
|
1076
955
|
transform: translate3d(-20px, 0, 0) scaleX(0.9);
|
|
@@ -1082,9 +961,7 @@ var bounceOutRight = import_react39.keyframes`
|
|
|
1082
961
|
}
|
|
1083
962
|
`;
|
|
1084
963
|
|
|
1085
|
-
|
|
1086
|
-
var import_react40 = require("@emotion/react");
|
|
1087
|
-
var bounceOutUp = import_react40.keyframes`
|
|
964
|
+
const bounceOutUp = keyframes`
|
|
1088
965
|
20% {
|
|
1089
966
|
transform: translate3d(0, -10px, 0) scaleY(0.985);
|
|
1090
967
|
}
|
|
@@ -1101,9 +978,7 @@ var bounceOutUp = import_react40.keyframes`
|
|
|
1101
978
|
}
|
|
1102
979
|
`;
|
|
1103
980
|
|
|
1104
|
-
|
|
1105
|
-
var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
|
|
1106
|
-
function getStyles2(reverse, direction) {
|
|
981
|
+
function getStyles$6(reverse, direction) {
|
|
1107
982
|
switch (direction) {
|
|
1108
983
|
case "down":
|
|
1109
984
|
return reverse ? bounceOutDown : bounceInDown;
|
|
@@ -1117,21 +992,16 @@ function getStyles2(reverse, direction) {
|
|
|
1117
992
|
return reverse ? bounceOut : bounceIn;
|
|
1118
993
|
}
|
|
1119
994
|
}
|
|
1120
|
-
|
|
995
|
+
const Bounce = (props) => {
|
|
1121
996
|
const { direction, reverse = false, ...rest } = props;
|
|
1122
|
-
const
|
|
1123
|
-
() =>
|
|
997
|
+
const keyframes = useMemo(
|
|
998
|
+
() => getStyles$6(reverse, direction),
|
|
1124
999
|
[direction, reverse]
|
|
1125
1000
|
);
|
|
1126
|
-
return /* @__PURE__ */
|
|
1001
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes, ...rest });
|
|
1127
1002
|
};
|
|
1128
1003
|
|
|
1129
|
-
|
|
1130
|
-
var import_react55 = require("react");
|
|
1131
|
-
|
|
1132
|
-
// src/animations/fading_exits/fadeOut.ts
|
|
1133
|
-
var import_react42 = require("@emotion/react");
|
|
1134
|
-
var fadeOut = import_react42.keyframes`
|
|
1004
|
+
const fadeOut = keyframes`
|
|
1135
1005
|
from {
|
|
1136
1006
|
opacity: 1;
|
|
1137
1007
|
}
|
|
@@ -1141,9 +1011,7 @@ var fadeOut = import_react42.keyframes`
|
|
|
1141
1011
|
}
|
|
1142
1012
|
`;
|
|
1143
1013
|
|
|
1144
|
-
|
|
1145
|
-
var import_react43 = require("@emotion/react");
|
|
1146
|
-
var fadeOutBottomLeft = import_react43.keyframes`
|
|
1014
|
+
const fadeOutBottomLeft = keyframes`
|
|
1147
1015
|
from {
|
|
1148
1016
|
opacity: 1;
|
|
1149
1017
|
transform: translate3d(0, 0, 0);
|
|
@@ -1155,9 +1023,7 @@ var fadeOutBottomLeft = import_react43.keyframes`
|
|
|
1155
1023
|
}
|
|
1156
1024
|
`;
|
|
1157
1025
|
|
|
1158
|
-
|
|
1159
|
-
var import_react44 = require("@emotion/react");
|
|
1160
|
-
var fadeOutBottomRight = import_react44.keyframes`
|
|
1026
|
+
const fadeOutBottomRight = keyframes`
|
|
1161
1027
|
from {
|
|
1162
1028
|
opacity: 1;
|
|
1163
1029
|
transform: translate3d(0, 0, 0);
|
|
@@ -1169,9 +1035,7 @@ var fadeOutBottomRight = import_react44.keyframes`
|
|
|
1169
1035
|
}
|
|
1170
1036
|
`;
|
|
1171
1037
|
|
|
1172
|
-
|
|
1173
|
-
var import_react45 = require("@emotion/react");
|
|
1174
|
-
var fadeOutDown = import_react45.keyframes`
|
|
1038
|
+
const fadeOutDown = keyframes`
|
|
1175
1039
|
from {
|
|
1176
1040
|
opacity: 1;
|
|
1177
1041
|
}
|
|
@@ -1182,9 +1046,7 @@ var fadeOutDown = import_react45.keyframes`
|
|
|
1182
1046
|
}
|
|
1183
1047
|
`;
|
|
1184
1048
|
|
|
1185
|
-
|
|
1186
|
-
var import_react46 = require("@emotion/react");
|
|
1187
|
-
var fadeOutDownBig = import_react46.keyframes`
|
|
1049
|
+
const fadeOutDownBig = keyframes`
|
|
1188
1050
|
from {
|
|
1189
1051
|
opacity: 1;
|
|
1190
1052
|
}
|
|
@@ -1195,9 +1057,7 @@ var fadeOutDownBig = import_react46.keyframes`
|
|
|
1195
1057
|
}
|
|
1196
1058
|
`;
|
|
1197
1059
|
|
|
1198
|
-
|
|
1199
|
-
var import_react47 = require("@emotion/react");
|
|
1200
|
-
var fadeOutLeft = import_react47.keyframes`
|
|
1060
|
+
const fadeOutLeft = keyframes`
|
|
1201
1061
|
from {
|
|
1202
1062
|
opacity: 1;
|
|
1203
1063
|
}
|
|
@@ -1208,9 +1068,7 @@ var fadeOutLeft = import_react47.keyframes`
|
|
|
1208
1068
|
}
|
|
1209
1069
|
`;
|
|
1210
1070
|
|
|
1211
|
-
|
|
1212
|
-
var import_react48 = require("@emotion/react");
|
|
1213
|
-
var fadeOutLeftBig = import_react48.keyframes`
|
|
1071
|
+
const fadeOutLeftBig = keyframes`
|
|
1214
1072
|
from {
|
|
1215
1073
|
opacity: 1;
|
|
1216
1074
|
}
|
|
@@ -1221,9 +1079,7 @@ var fadeOutLeftBig = import_react48.keyframes`
|
|
|
1221
1079
|
}
|
|
1222
1080
|
`;
|
|
1223
1081
|
|
|
1224
|
-
|
|
1225
|
-
var import_react49 = require("@emotion/react");
|
|
1226
|
-
var fadeOutRight = import_react49.keyframes`
|
|
1082
|
+
const fadeOutRight = keyframes`
|
|
1227
1083
|
from {
|
|
1228
1084
|
opacity: 1;
|
|
1229
1085
|
}
|
|
@@ -1234,9 +1090,7 @@ var fadeOutRight = import_react49.keyframes`
|
|
|
1234
1090
|
}
|
|
1235
1091
|
`;
|
|
1236
1092
|
|
|
1237
|
-
|
|
1238
|
-
var import_react50 = require("@emotion/react");
|
|
1239
|
-
var fadeOutRightBig = import_react50.keyframes`
|
|
1093
|
+
const fadeOutRightBig = keyframes`
|
|
1240
1094
|
from {
|
|
1241
1095
|
opacity: 1;
|
|
1242
1096
|
}
|
|
@@ -1247,9 +1101,7 @@ var fadeOutRightBig = import_react50.keyframes`
|
|
|
1247
1101
|
}
|
|
1248
1102
|
`;
|
|
1249
1103
|
|
|
1250
|
-
|
|
1251
|
-
var import_react51 = require("@emotion/react");
|
|
1252
|
-
var fadeOutTopLeft = import_react51.keyframes`
|
|
1104
|
+
const fadeOutTopLeft = keyframes`
|
|
1253
1105
|
from {
|
|
1254
1106
|
opacity: 1;
|
|
1255
1107
|
transform: translate3d(0, 0, 0);
|
|
@@ -1261,9 +1113,7 @@ var fadeOutTopLeft = import_react51.keyframes`
|
|
|
1261
1113
|
}
|
|
1262
1114
|
`;
|
|
1263
1115
|
|
|
1264
|
-
|
|
1265
|
-
var import_react52 = require("@emotion/react");
|
|
1266
|
-
var fadeOutTopRight = import_react52.keyframes`
|
|
1116
|
+
const fadeOutTopRight = keyframes`
|
|
1267
1117
|
from {
|
|
1268
1118
|
opacity: 1;
|
|
1269
1119
|
transform: translate3d(0, 0, 0);
|
|
@@ -1275,9 +1125,7 @@ var fadeOutTopRight = import_react52.keyframes`
|
|
|
1275
1125
|
}
|
|
1276
1126
|
`;
|
|
1277
1127
|
|
|
1278
|
-
|
|
1279
|
-
var import_react53 = require("@emotion/react");
|
|
1280
|
-
var fadeOutUp = import_react53.keyframes`
|
|
1128
|
+
const fadeOutUp = keyframes`
|
|
1281
1129
|
from {
|
|
1282
1130
|
opacity: 1;
|
|
1283
1131
|
}
|
|
@@ -1288,9 +1136,7 @@ var fadeOutUp = import_react53.keyframes`
|
|
|
1288
1136
|
}
|
|
1289
1137
|
`;
|
|
1290
1138
|
|
|
1291
|
-
|
|
1292
|
-
var import_react54 = require("@emotion/react");
|
|
1293
|
-
var fadeOutUpBig = import_react54.keyframes`
|
|
1139
|
+
const fadeOutUpBig = keyframes`
|
|
1294
1140
|
from {
|
|
1295
1141
|
opacity: 1;
|
|
1296
1142
|
}
|
|
@@ -1301,9 +1147,7 @@ var fadeOutUpBig = import_react54.keyframes`
|
|
|
1301
1147
|
}
|
|
1302
1148
|
`;
|
|
1303
1149
|
|
|
1304
|
-
|
|
1305
|
-
var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
|
|
1306
|
-
function getStyles3(big, reverse, direction) {
|
|
1150
|
+
function getStyles$5(big, reverse, direction) {
|
|
1307
1151
|
switch (direction) {
|
|
1308
1152
|
case "bottom-left":
|
|
1309
1153
|
return reverse ? fadeOutBottomLeft : fadeInBottomLeft;
|
|
@@ -1325,21 +1169,16 @@ function getStyles3(big, reverse, direction) {
|
|
|
1325
1169
|
return reverse ? fadeOut : fadeIn;
|
|
1326
1170
|
}
|
|
1327
1171
|
}
|
|
1328
|
-
|
|
1172
|
+
const Fade = (props) => {
|
|
1329
1173
|
const { big = false, direction, reverse = false, ...rest } = props;
|
|
1330
|
-
const
|
|
1331
|
-
() =>
|
|
1174
|
+
const keyframes = useMemo(
|
|
1175
|
+
() => getStyles$5(big, reverse, direction),
|
|
1332
1176
|
[big, direction, reverse]
|
|
1333
1177
|
);
|
|
1334
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes, ...rest });
|
|
1335
1179
|
};
|
|
1336
1180
|
|
|
1337
|
-
|
|
1338
|
-
var import_react61 = require("react");
|
|
1339
|
-
|
|
1340
|
-
// src/animations/flippers/flip.ts
|
|
1341
|
-
var import_react56 = require("@emotion/react");
|
|
1342
|
-
var flip = import_react56.keyframes`
|
|
1181
|
+
const flip = keyframes`
|
|
1343
1182
|
from {
|
|
1344
1183
|
transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);
|
|
1345
1184
|
animation-timing-function: ease-out;
|
|
@@ -1369,9 +1208,7 @@ var flip = import_react56.keyframes`
|
|
|
1369
1208
|
}
|
|
1370
1209
|
`;
|
|
1371
1210
|
|
|
1372
|
-
|
|
1373
|
-
var import_react57 = require("@emotion/react");
|
|
1374
|
-
var flipInX = import_react57.keyframes`
|
|
1211
|
+
const flipInX = keyframes`
|
|
1375
1212
|
from {
|
|
1376
1213
|
transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
|
|
1377
1214
|
animation-timing-function: ease-in;
|
|
@@ -1397,9 +1234,7 @@ var flipInX = import_react57.keyframes`
|
|
|
1397
1234
|
}
|
|
1398
1235
|
`;
|
|
1399
1236
|
|
|
1400
|
-
|
|
1401
|
-
var import_react58 = require("@emotion/react");
|
|
1402
|
-
var flipInY = import_react58.keyframes`
|
|
1237
|
+
const flipInY = keyframes`
|
|
1403
1238
|
from {
|
|
1404
1239
|
transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
|
|
1405
1240
|
animation-timing-function: ease-in;
|
|
@@ -1425,9 +1260,7 @@ var flipInY = import_react58.keyframes`
|
|
|
1425
1260
|
}
|
|
1426
1261
|
`;
|
|
1427
1262
|
|
|
1428
|
-
|
|
1429
|
-
var import_react59 = require("@emotion/react");
|
|
1430
|
-
var flipOutX = import_react59.keyframes`
|
|
1263
|
+
const flipOutX = keyframes`
|
|
1431
1264
|
from {
|
|
1432
1265
|
transform: perspective(400px);
|
|
1433
1266
|
}
|
|
@@ -1443,9 +1276,7 @@ var flipOutX = import_react59.keyframes`
|
|
|
1443
1276
|
}
|
|
1444
1277
|
`;
|
|
1445
1278
|
|
|
1446
|
-
|
|
1447
|
-
var import_react60 = require("@emotion/react");
|
|
1448
|
-
var flipOutY = import_react60.keyframes`
|
|
1279
|
+
const flipOutY = keyframes`
|
|
1449
1280
|
from {
|
|
1450
1281
|
transform: perspective(400px);
|
|
1451
1282
|
}
|
|
@@ -1461,9 +1292,7 @@ var flipOutY = import_react60.keyframes`
|
|
|
1461
1292
|
}
|
|
1462
1293
|
`;
|
|
1463
1294
|
|
|
1464
|
-
|
|
1465
|
-
var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
|
|
1466
|
-
function getStyles4(reverse, direction) {
|
|
1295
|
+
function getStyles$4(reverse, direction) {
|
|
1467
1296
|
switch (direction) {
|
|
1468
1297
|
case "horizontal":
|
|
1469
1298
|
return reverse ? flipOutX : flipInX;
|
|
@@ -1473,28 +1302,26 @@ function getStyles4(reverse, direction) {
|
|
|
1473
1302
|
return flip;
|
|
1474
1303
|
}
|
|
1475
1304
|
}
|
|
1476
|
-
|
|
1305
|
+
const animationCss$1 = {
|
|
1477
1306
|
backfaceVisibility: "visible"
|
|
1478
1307
|
};
|
|
1479
|
-
|
|
1308
|
+
const Flip = (props) => {
|
|
1480
1309
|
const { direction, reverse = false, style, ...rest } = props;
|
|
1481
|
-
const
|
|
1482
|
-
() =>
|
|
1310
|
+
const keyframes = useMemo(
|
|
1311
|
+
() => getStyles$4(reverse, direction),
|
|
1483
1312
|
[direction, reverse]
|
|
1484
1313
|
);
|
|
1485
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ jsx(
|
|
1486
1315
|
Reveal,
|
|
1487
1316
|
{
|
|
1488
|
-
keyframes
|
|
1489
|
-
style: Object.assign({}, style, animationCss),
|
|
1317
|
+
keyframes,
|
|
1318
|
+
style: Object.assign({}, style, animationCss$1),
|
|
1490
1319
|
...rest
|
|
1491
1320
|
}
|
|
1492
1321
|
);
|
|
1493
1322
|
};
|
|
1494
1323
|
|
|
1495
|
-
|
|
1496
|
-
var import_react62 = require("@emotion/react");
|
|
1497
|
-
var hinge = import_react62.keyframes`
|
|
1324
|
+
const hinge = keyframes`
|
|
1498
1325
|
0% {
|
|
1499
1326
|
animation-timing-function: ease-in-out;
|
|
1500
1327
|
}
|
|
@@ -1518,9 +1345,7 @@ var hinge = import_react62.keyframes`
|
|
|
1518
1345
|
}
|
|
1519
1346
|
`;
|
|
1520
1347
|
|
|
1521
|
-
|
|
1522
|
-
var import_react63 = require("@emotion/react");
|
|
1523
|
-
var jackInTheBox = import_react63.keyframes`
|
|
1348
|
+
const jackInTheBox = keyframes`
|
|
1524
1349
|
from {
|
|
1525
1350
|
opacity: 0;
|
|
1526
1351
|
transform: scale(0.1) rotate(30deg);
|
|
@@ -1541,9 +1366,7 @@ var jackInTheBox = import_react63.keyframes`
|
|
|
1541
1366
|
}
|
|
1542
1367
|
`;
|
|
1543
1368
|
|
|
1544
|
-
|
|
1545
|
-
var import_react64 = require("@emotion/react");
|
|
1546
|
-
var rollIn = import_react64.keyframes`
|
|
1369
|
+
const rollIn = keyframes`
|
|
1547
1370
|
from {
|
|
1548
1371
|
opacity: 0;
|
|
1549
1372
|
transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
|
|
@@ -1555,9 +1378,7 @@ var rollIn = import_react64.keyframes`
|
|
|
1555
1378
|
}
|
|
1556
1379
|
`;
|
|
1557
1380
|
|
|
1558
|
-
|
|
1559
|
-
var import_react65 = require("@emotion/react");
|
|
1560
|
-
var rollOut = import_react65.keyframes`
|
|
1381
|
+
const rollOut = keyframes`
|
|
1561
1382
|
from {
|
|
1562
1383
|
opacity: 1;
|
|
1563
1384
|
}
|
|
@@ -1568,47 +1389,35 @@ var rollOut = import_react65.keyframes`
|
|
|
1568
1389
|
}
|
|
1569
1390
|
`;
|
|
1570
1391
|
|
|
1571
|
-
|
|
1572
|
-
var import_jsx_runtime6 = require("@emotion/react/jsx-runtime");
|
|
1573
|
-
var animationCss2 = {
|
|
1392
|
+
const animationCss = {
|
|
1574
1393
|
transformOrigin: "top left"
|
|
1575
1394
|
};
|
|
1576
|
-
|
|
1395
|
+
const Hinge = (props) => {
|
|
1577
1396
|
const { style, ...rest } = props;
|
|
1578
|
-
return /* @__PURE__ */
|
|
1397
|
+
return /* @__PURE__ */ jsx(
|
|
1579
1398
|
Reveal,
|
|
1580
1399
|
{
|
|
1581
1400
|
keyframes: hinge,
|
|
1582
|
-
style: Object.assign({}, style,
|
|
1401
|
+
style: Object.assign({}, style, animationCss),
|
|
1583
1402
|
...rest
|
|
1584
1403
|
}
|
|
1585
1404
|
);
|
|
1586
1405
|
};
|
|
1587
1406
|
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
var JackInTheBox = (props) => {
|
|
1591
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Reveal, { keyframes: jackInTheBox, ...props });
|
|
1407
|
+
const JackInTheBox = (props) => {
|
|
1408
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes: jackInTheBox, ...props });
|
|
1592
1409
|
};
|
|
1593
1410
|
|
|
1594
|
-
|
|
1595
|
-
var import_react66 = require("react");
|
|
1596
|
-
var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
|
|
1597
|
-
function getStyles5(reverse) {
|
|
1411
|
+
function getStyles$3(reverse) {
|
|
1598
1412
|
return reverse ? rollOut : rollIn;
|
|
1599
1413
|
}
|
|
1600
|
-
|
|
1414
|
+
const Roll = (props) => {
|
|
1601
1415
|
const { reverse = false, ...rest } = props;
|
|
1602
|
-
const
|
|
1603
|
-
return /* @__PURE__ */
|
|
1416
|
+
const keyframes = useMemo(() => getStyles$3(reverse), [reverse]);
|
|
1417
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes, ...rest });
|
|
1604
1418
|
};
|
|
1605
1419
|
|
|
1606
|
-
|
|
1607
|
-
var import_react77 = require("react");
|
|
1608
|
-
|
|
1609
|
-
// src/animations/rotating_entrances/rotateIn.ts
|
|
1610
|
-
var import_react67 = require("@emotion/react");
|
|
1611
|
-
var rotateIn = import_react67.keyframes`
|
|
1420
|
+
const rotateIn = keyframes`
|
|
1612
1421
|
from {
|
|
1613
1422
|
transform: rotate3d(0, 0, 1, -200deg);
|
|
1614
1423
|
opacity: 0;
|
|
@@ -1620,9 +1429,7 @@ var rotateIn = import_react67.keyframes`
|
|
|
1620
1429
|
}
|
|
1621
1430
|
`;
|
|
1622
1431
|
|
|
1623
|
-
|
|
1624
|
-
var import_react68 = require("@emotion/react");
|
|
1625
|
-
var rotateInDownLeft = import_react68.keyframes`
|
|
1432
|
+
const rotateInDownLeft = keyframes`
|
|
1626
1433
|
from {
|
|
1627
1434
|
transform: rotate3d(0, 0, 1, -45deg);
|
|
1628
1435
|
opacity: 0;
|
|
@@ -1634,9 +1441,7 @@ var rotateInDownLeft = import_react68.keyframes`
|
|
|
1634
1441
|
}
|
|
1635
1442
|
`;
|
|
1636
1443
|
|
|
1637
|
-
|
|
1638
|
-
var import_react69 = require("@emotion/react");
|
|
1639
|
-
var rotateInDownRight = import_react69.keyframes`
|
|
1444
|
+
const rotateInDownRight = keyframes`
|
|
1640
1445
|
from {
|
|
1641
1446
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1642
1447
|
opacity: 0;
|
|
@@ -1648,9 +1453,7 @@ var rotateInDownRight = import_react69.keyframes`
|
|
|
1648
1453
|
}
|
|
1649
1454
|
`;
|
|
1650
1455
|
|
|
1651
|
-
|
|
1652
|
-
var import_react70 = require("@emotion/react");
|
|
1653
|
-
var rotateInUpLeft = import_react70.keyframes`
|
|
1456
|
+
const rotateInUpLeft = keyframes`
|
|
1654
1457
|
from {
|
|
1655
1458
|
transform: rotate3d(0, 0, 1, 45deg);
|
|
1656
1459
|
opacity: 0;
|
|
@@ -1662,9 +1465,7 @@ var rotateInUpLeft = import_react70.keyframes`
|
|
|
1662
1465
|
}
|
|
1663
1466
|
`;
|
|
1664
1467
|
|
|
1665
|
-
|
|
1666
|
-
var import_react71 = require("@emotion/react");
|
|
1667
|
-
var rotateInUpRight = import_react71.keyframes`
|
|
1468
|
+
const rotateInUpRight = keyframes`
|
|
1668
1469
|
from {
|
|
1669
1470
|
transform: rotate3d(0, 0, 1, -90deg);
|
|
1670
1471
|
opacity: 0;
|
|
@@ -1676,9 +1477,7 @@ var rotateInUpRight = import_react71.keyframes`
|
|
|
1676
1477
|
}
|
|
1677
1478
|
`;
|
|
1678
1479
|
|
|
1679
|
-
|
|
1680
|
-
var import_react72 = require("@emotion/react");
|
|
1681
|
-
var rotateOut = import_react72.keyframes`
|
|
1480
|
+
const rotateOut = keyframes`
|
|
1682
1481
|
from {
|
|
1683
1482
|
opacity: 1;
|
|
1684
1483
|
}
|
|
@@ -1689,9 +1488,7 @@ var rotateOut = import_react72.keyframes`
|
|
|
1689
1488
|
}
|
|
1690
1489
|
`;
|
|
1691
1490
|
|
|
1692
|
-
|
|
1693
|
-
var import_react73 = require("@emotion/react");
|
|
1694
|
-
var rotateOutDownLeft = import_react73.keyframes`
|
|
1491
|
+
const rotateOutDownLeft = keyframes`
|
|
1695
1492
|
from {
|
|
1696
1493
|
opacity: 1;
|
|
1697
1494
|
}
|
|
@@ -1702,9 +1499,7 @@ var rotateOutDownLeft = import_react73.keyframes`
|
|
|
1702
1499
|
}
|
|
1703
1500
|
`;
|
|
1704
1501
|
|
|
1705
|
-
|
|
1706
|
-
var import_react74 = require("@emotion/react");
|
|
1707
|
-
var rotateOutDownRight = import_react74.keyframes`
|
|
1502
|
+
const rotateOutDownRight = keyframes`
|
|
1708
1503
|
from {
|
|
1709
1504
|
opacity: 1;
|
|
1710
1505
|
}
|
|
@@ -1715,9 +1510,7 @@ var rotateOutDownRight = import_react74.keyframes`
|
|
|
1715
1510
|
}
|
|
1716
1511
|
`;
|
|
1717
1512
|
|
|
1718
|
-
|
|
1719
|
-
var import_react75 = require("@emotion/react");
|
|
1720
|
-
var rotateOutUpLeft = import_react75.keyframes`
|
|
1513
|
+
const rotateOutUpLeft = keyframes`
|
|
1721
1514
|
from {
|
|
1722
1515
|
opacity: 1;
|
|
1723
1516
|
}
|
|
@@ -1728,9 +1521,7 @@ var rotateOutUpLeft = import_react75.keyframes`
|
|
|
1728
1521
|
}
|
|
1729
1522
|
`;
|
|
1730
1523
|
|
|
1731
|
-
|
|
1732
|
-
var import_react76 = require("@emotion/react");
|
|
1733
|
-
var rotateOutUpRight = import_react76.keyframes`
|
|
1524
|
+
const rotateOutUpRight = keyframes`
|
|
1734
1525
|
from {
|
|
1735
1526
|
opacity: 1;
|
|
1736
1527
|
}
|
|
@@ -1741,9 +1532,7 @@ var rotateOutUpRight = import_react76.keyframes`
|
|
|
1741
1532
|
}
|
|
1742
1533
|
`;
|
|
1743
1534
|
|
|
1744
|
-
|
|
1745
|
-
var import_jsx_runtime9 = require("@emotion/react/jsx-runtime");
|
|
1746
|
-
function getStyles6(reverse, direction) {
|
|
1535
|
+
function getStyles$2(reverse, direction) {
|
|
1747
1536
|
switch (direction) {
|
|
1748
1537
|
case "bottom-left":
|
|
1749
1538
|
return reverse ? [rotateOutDownLeft, { transformOrigin: "left bottom" }] : [rotateInDownLeft, { transformOrigin: "left bottom" }];
|
|
@@ -1757,28 +1546,23 @@ function getStyles6(reverse, direction) {
|
|
|
1757
1546
|
return reverse ? [rotateOut, { transformOrigin: "center" }] : [rotateIn, { transformOrigin: "center" }];
|
|
1758
1547
|
}
|
|
1759
1548
|
}
|
|
1760
|
-
|
|
1549
|
+
const Rotate = (props) => {
|
|
1761
1550
|
const { direction, reverse = false, style, ...rest } = props;
|
|
1762
|
-
const [
|
|
1763
|
-
() =>
|
|
1551
|
+
const [keyframes, animationCss] = useMemo(
|
|
1552
|
+
() => getStyles$2(reverse, direction),
|
|
1764
1553
|
[direction, reverse]
|
|
1765
1554
|
);
|
|
1766
|
-
return /* @__PURE__ */
|
|
1555
|
+
return /* @__PURE__ */ jsx(
|
|
1767
1556
|
Reveal,
|
|
1768
1557
|
{
|
|
1769
|
-
keyframes
|
|
1770
|
-
style: Object.assign({}, style,
|
|
1558
|
+
keyframes,
|
|
1559
|
+
style: Object.assign({}, style, animationCss),
|
|
1771
1560
|
...rest
|
|
1772
1561
|
}
|
|
1773
1562
|
);
|
|
1774
1563
|
};
|
|
1775
1564
|
|
|
1776
|
-
|
|
1777
|
-
var import_react86 = require("react");
|
|
1778
|
-
|
|
1779
|
-
// src/animations/sliding_entrances/slideInDown.ts
|
|
1780
|
-
var import_react78 = require("@emotion/react");
|
|
1781
|
-
var slideInDown = import_react78.keyframes`
|
|
1565
|
+
const slideInDown = keyframes`
|
|
1782
1566
|
from {
|
|
1783
1567
|
transform: translate3d(0, -100%, 0);
|
|
1784
1568
|
visibility: visible;
|
|
@@ -1789,9 +1573,7 @@ var slideInDown = import_react78.keyframes`
|
|
|
1789
1573
|
}
|
|
1790
1574
|
`;
|
|
1791
1575
|
|
|
1792
|
-
|
|
1793
|
-
var import_react79 = require("@emotion/react");
|
|
1794
|
-
var slideInLeft = import_react79.keyframes`
|
|
1576
|
+
const slideInLeft = keyframes`
|
|
1795
1577
|
from {
|
|
1796
1578
|
transform: translate3d(-100%, 0, 0);
|
|
1797
1579
|
visibility: visible;
|
|
@@ -1802,9 +1584,7 @@ var slideInLeft = import_react79.keyframes`
|
|
|
1802
1584
|
}
|
|
1803
1585
|
`;
|
|
1804
1586
|
|
|
1805
|
-
|
|
1806
|
-
var import_react80 = require("@emotion/react");
|
|
1807
|
-
var slideInRight = import_react80.keyframes`
|
|
1587
|
+
const slideInRight = keyframes`
|
|
1808
1588
|
from {
|
|
1809
1589
|
transform: translate3d(100%, 0, 0);
|
|
1810
1590
|
visibility: visible;
|
|
@@ -1815,9 +1595,7 @@ var slideInRight = import_react80.keyframes`
|
|
|
1815
1595
|
}
|
|
1816
1596
|
`;
|
|
1817
1597
|
|
|
1818
|
-
|
|
1819
|
-
var import_react81 = require("@emotion/react");
|
|
1820
|
-
var slideInUp = import_react81.keyframes`
|
|
1598
|
+
const slideInUp = keyframes`
|
|
1821
1599
|
from {
|
|
1822
1600
|
transform: translate3d(0, 100%, 0);
|
|
1823
1601
|
visibility: visible;
|
|
@@ -1828,9 +1606,7 @@ var slideInUp = import_react81.keyframes`
|
|
|
1828
1606
|
}
|
|
1829
1607
|
`;
|
|
1830
1608
|
|
|
1831
|
-
|
|
1832
|
-
var import_react82 = require("@emotion/react");
|
|
1833
|
-
var slideOutDown = import_react82.keyframes`
|
|
1609
|
+
const slideOutDown = keyframes`
|
|
1834
1610
|
from {
|
|
1835
1611
|
transform: translate3d(0, 0, 0);
|
|
1836
1612
|
}
|
|
@@ -1841,9 +1617,7 @@ var slideOutDown = import_react82.keyframes`
|
|
|
1841
1617
|
}
|
|
1842
1618
|
`;
|
|
1843
1619
|
|
|
1844
|
-
|
|
1845
|
-
var import_react83 = require("@emotion/react");
|
|
1846
|
-
var slideOutLeft = import_react83.keyframes`
|
|
1620
|
+
const slideOutLeft = keyframes`
|
|
1847
1621
|
from {
|
|
1848
1622
|
transform: translate3d(0, 0, 0);
|
|
1849
1623
|
}
|
|
@@ -1854,9 +1628,7 @@ var slideOutLeft = import_react83.keyframes`
|
|
|
1854
1628
|
}
|
|
1855
1629
|
`;
|
|
1856
1630
|
|
|
1857
|
-
|
|
1858
|
-
var import_react84 = require("@emotion/react");
|
|
1859
|
-
var slideOutRight = import_react84.keyframes`
|
|
1631
|
+
const slideOutRight = keyframes`
|
|
1860
1632
|
from {
|
|
1861
1633
|
transform: translate3d(0, 0, 0);
|
|
1862
1634
|
}
|
|
@@ -1867,9 +1639,7 @@ var slideOutRight = import_react84.keyframes`
|
|
|
1867
1639
|
}
|
|
1868
1640
|
`;
|
|
1869
1641
|
|
|
1870
|
-
|
|
1871
|
-
var import_react85 = require("@emotion/react");
|
|
1872
|
-
var slideOutUp = import_react85.keyframes`
|
|
1642
|
+
const slideOutUp = keyframes`
|
|
1873
1643
|
from {
|
|
1874
1644
|
transform: translate3d(0, 0, 0);
|
|
1875
1645
|
}
|
|
@@ -1880,9 +1650,7 @@ var slideOutUp = import_react85.keyframes`
|
|
|
1880
1650
|
}
|
|
1881
1651
|
`;
|
|
1882
1652
|
|
|
1883
|
-
|
|
1884
|
-
var import_jsx_runtime10 = require("@emotion/react/jsx-runtime");
|
|
1885
|
-
function getStyles7(reverse, direction) {
|
|
1653
|
+
function getStyles$1(reverse, direction) {
|
|
1886
1654
|
switch (direction) {
|
|
1887
1655
|
case "down":
|
|
1888
1656
|
return reverse ? slideOutDown : slideInDown;
|
|
@@ -1895,21 +1663,16 @@ function getStyles7(reverse, direction) {
|
|
|
1895
1663
|
return reverse ? slideOutLeft : slideInLeft;
|
|
1896
1664
|
}
|
|
1897
1665
|
}
|
|
1898
|
-
|
|
1666
|
+
const Slide = (props) => {
|
|
1899
1667
|
const { direction, reverse = false, ...rest } = props;
|
|
1900
|
-
const
|
|
1901
|
-
() =>
|
|
1668
|
+
const keyframes = useMemo(
|
|
1669
|
+
() => getStyles$1(reverse, direction),
|
|
1902
1670
|
[direction, reverse]
|
|
1903
1671
|
);
|
|
1904
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes, ...rest });
|
|
1905
1673
|
};
|
|
1906
1674
|
|
|
1907
|
-
|
|
1908
|
-
var import_react97 = require("react");
|
|
1909
|
-
|
|
1910
|
-
// src/animations/zooming_entrances/zoomIn.ts
|
|
1911
|
-
var import_react87 = require("@emotion/react");
|
|
1912
|
-
var zoomIn = import_react87.keyframes`
|
|
1675
|
+
const zoomIn = keyframes`
|
|
1913
1676
|
from {
|
|
1914
1677
|
opacity: 0;
|
|
1915
1678
|
transform: scale3d(0.3, 0.3, 0.3);
|
|
@@ -1920,9 +1683,7 @@ var zoomIn = import_react87.keyframes`
|
|
|
1920
1683
|
}
|
|
1921
1684
|
`;
|
|
1922
1685
|
|
|
1923
|
-
|
|
1924
|
-
var import_react88 = require("@emotion/react");
|
|
1925
|
-
var zoomInDown = import_react88.keyframes`
|
|
1686
|
+
const zoomInDown = keyframes`
|
|
1926
1687
|
from {
|
|
1927
1688
|
opacity: 0;
|
|
1928
1689
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
|
|
@@ -1936,9 +1697,7 @@ var zoomInDown = import_react88.keyframes`
|
|
|
1936
1697
|
}
|
|
1937
1698
|
`;
|
|
1938
1699
|
|
|
1939
|
-
|
|
1940
|
-
var import_react89 = require("@emotion/react");
|
|
1941
|
-
var zoomInLeft = import_react89.keyframes`
|
|
1700
|
+
const zoomInLeft = keyframes`
|
|
1942
1701
|
from {
|
|
1943
1702
|
opacity: 0;
|
|
1944
1703
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
|
|
@@ -1952,9 +1711,7 @@ var zoomInLeft = import_react89.keyframes`
|
|
|
1952
1711
|
}
|
|
1953
1712
|
`;
|
|
1954
1713
|
|
|
1955
|
-
|
|
1956
|
-
var import_react90 = require("@emotion/react");
|
|
1957
|
-
var zoomInRight = import_react90.keyframes`
|
|
1714
|
+
const zoomInRight = keyframes`
|
|
1958
1715
|
from {
|
|
1959
1716
|
opacity: 0;
|
|
1960
1717
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
|
|
@@ -1968,9 +1725,7 @@ var zoomInRight = import_react90.keyframes`
|
|
|
1968
1725
|
}
|
|
1969
1726
|
`;
|
|
1970
1727
|
|
|
1971
|
-
|
|
1972
|
-
var import_react91 = require("@emotion/react");
|
|
1973
|
-
var zoomInUp = import_react91.keyframes`
|
|
1728
|
+
const zoomInUp = keyframes`
|
|
1974
1729
|
from {
|
|
1975
1730
|
opacity: 0;
|
|
1976
1731
|
transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
|
|
@@ -1984,9 +1739,7 @@ var zoomInUp = import_react91.keyframes`
|
|
|
1984
1739
|
}
|
|
1985
1740
|
`;
|
|
1986
1741
|
|
|
1987
|
-
|
|
1988
|
-
var import_react92 = require("@emotion/react");
|
|
1989
|
-
var zoomOut = import_react92.keyframes`
|
|
1742
|
+
const zoomOut = keyframes`
|
|
1990
1743
|
from {
|
|
1991
1744
|
opacity: 1;
|
|
1992
1745
|
}
|
|
@@ -2001,9 +1754,7 @@ var zoomOut = import_react92.keyframes`
|
|
|
2001
1754
|
}
|
|
2002
1755
|
`;
|
|
2003
1756
|
|
|
2004
|
-
|
|
2005
|
-
var import_react93 = require("@emotion/react");
|
|
2006
|
-
var zoomOutDown = import_react93.keyframes`
|
|
1757
|
+
const zoomOutDown = keyframes`
|
|
2007
1758
|
40% {
|
|
2008
1759
|
opacity: 1;
|
|
2009
1760
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
|
|
@@ -2017,9 +1768,7 @@ var zoomOutDown = import_react93.keyframes`
|
|
|
2017
1768
|
}
|
|
2018
1769
|
`;
|
|
2019
1770
|
|
|
2020
|
-
|
|
2021
|
-
var import_react94 = require("@emotion/react");
|
|
2022
|
-
var zoomOutLeft = import_react94.keyframes`
|
|
1771
|
+
const zoomOutLeft = keyframes`
|
|
2023
1772
|
40% {
|
|
2024
1773
|
opacity: 1;
|
|
2025
1774
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0);
|
|
@@ -2031,9 +1780,7 @@ var zoomOutLeft = import_react94.keyframes`
|
|
|
2031
1780
|
}
|
|
2032
1781
|
`;
|
|
2033
1782
|
|
|
2034
|
-
|
|
2035
|
-
var import_react95 = require("@emotion/react");
|
|
2036
|
-
var zoomOutRight = import_react95.keyframes`
|
|
1783
|
+
const zoomOutRight = keyframes`
|
|
2037
1784
|
40% {
|
|
2038
1785
|
opacity: 1;
|
|
2039
1786
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0);
|
|
@@ -2045,9 +1792,7 @@ var zoomOutRight = import_react95.keyframes`
|
|
|
2045
1792
|
}
|
|
2046
1793
|
`;
|
|
2047
1794
|
|
|
2048
|
-
|
|
2049
|
-
var import_react96 = require("@emotion/react");
|
|
2050
|
-
var zoomOutUp = import_react96.keyframes`
|
|
1795
|
+
const zoomOutUp = keyframes`
|
|
2051
1796
|
40% {
|
|
2052
1797
|
opacity: 1;
|
|
2053
1798
|
transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
|
|
@@ -2061,9 +1806,7 @@ var zoomOutUp = import_react96.keyframes`
|
|
|
2061
1806
|
}
|
|
2062
1807
|
`;
|
|
2063
1808
|
|
|
2064
|
-
|
|
2065
|
-
var import_jsx_runtime11 = require("@emotion/react/jsx-runtime");
|
|
2066
|
-
function getStyles8(reverse, direction) {
|
|
1809
|
+
function getStyles(reverse, direction) {
|
|
2067
1810
|
switch (direction) {
|
|
2068
1811
|
case "down":
|
|
2069
1812
|
return reverse ? zoomOutDown : zoomInDown;
|
|
@@ -2077,26 +1820,14 @@ function getStyles8(reverse, direction) {
|
|
|
2077
1820
|
return reverse ? zoomOut : zoomIn;
|
|
2078
1821
|
}
|
|
2079
1822
|
}
|
|
2080
|
-
|
|
1823
|
+
const Zoom = (props) => {
|
|
2081
1824
|
const { direction, reverse = false, ...rest } = props;
|
|
2082
|
-
const
|
|
2083
|
-
() =>
|
|
1825
|
+
const keyframes = useMemo(
|
|
1826
|
+
() => getStyles(reverse, direction),
|
|
2084
1827
|
[direction, reverse]
|
|
2085
1828
|
);
|
|
2086
|
-
return /* @__PURE__ */
|
|
1829
|
+
return /* @__PURE__ */ jsx(Reveal, { keyframes, ...rest });
|
|
2087
1830
|
};
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
Bounce,
|
|
2092
|
-
Fade,
|
|
2093
|
-
Flip,
|
|
2094
|
-
Hinge,
|
|
2095
|
-
JackInTheBox,
|
|
2096
|
-
Reveal,
|
|
2097
|
-
Roll,
|
|
2098
|
-
Rotate,
|
|
2099
|
-
Slide,
|
|
2100
|
-
Zoom
|
|
2101
|
-
});
|
|
2102
|
-
//# sourceMappingURL=index.js.map
|
|
1831
|
+
|
|
1832
|
+
export { AttentionSeeker, Bounce, Fade, Flip, Hinge, JackInTheBox, Reveal, Roll, Rotate, Slide, Zoom, Reveal as default };
|
|
1833
|
+
//# sourceMappingURL=index.js.map
|