@prodkt/animations 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.md +70 -0
  3. package/dist/LICENSE +21 -0
  4. package/dist/attention_seekers/bounce.js +15 -0
  5. package/dist/attention_seekers/flash.js +7 -0
  6. package/dist/attention_seekers/headShake.js +8 -0
  7. package/dist/attention_seekers/heartBeat.js +7 -0
  8. package/dist/attention_seekers/jello.js +12 -0
  9. package/dist/attention_seekers/pulse.js +5 -0
  10. package/dist/attention_seekers/rubberBand.js +9 -0
  11. package/dist/attention_seekers/shake.js +13 -0
  12. package/dist/attention_seekers/shakeX.js +13 -0
  13. package/dist/attention_seekers/shakeY.js +13 -0
  14. package/dist/attention_seekers/swing.js +7 -0
  15. package/dist/attention_seekers/tada.js +13 -0
  16. package/dist/attention_seekers/wobble.js +9 -0
  17. package/dist/back_entrances/backInDown.js +5 -0
  18. package/dist/back_entrances/backInLeft.js +5 -0
  19. package/dist/back_entrances/backInRight.js +5 -0
  20. package/dist/back_entrances/backInUp.js +5 -0
  21. package/dist/back_exits/backOutDown.js +5 -0
  22. package/dist/back_exits/backOutLeft.js +5 -0
  23. package/dist/back_exits/backOutRight.js +5 -0
  24. package/dist/back_exits/backOutUp.js +5 -0
  25. package/dist/bouncing_entrances/bounceIn.js +14 -0
  26. package/dist/bouncing_entrances/bounceInDown.js +12 -0
  27. package/dist/bouncing_entrances/bounceInLeft.js +12 -0
  28. package/dist/bouncing_entrances/bounceInRight.js +12 -0
  29. package/dist/bouncing_entrances/bounceInUp.js +12 -0
  30. package/dist/bouncing_exits/bounceOut.js +6 -0
  31. package/dist/bouncing_exits/bounceOutDown.js +6 -0
  32. package/dist/bouncing_exits/bounceOutLeft.js +4 -0
  33. package/dist/bouncing_exits/bounceOutRight.js +4 -0
  34. package/dist/bouncing_exits/bounceOutUp.js +6 -0
  35. package/dist/easings/easings.js +31 -0
  36. package/dist/fading_entrances/fadeIn.js +4 -0
  37. package/dist/fading_entrances/fadeInBottomLeft.js +4 -0
  38. package/dist/fading_entrances/fadeInBottomRight.js +4 -0
  39. package/dist/fading_entrances/fadeInDown.js +4 -0
  40. package/dist/fading_entrances/fadeInDownBig.js +4 -0
  41. package/dist/fading_entrances/fadeInLeft.js +4 -0
  42. package/dist/fading_entrances/fadeInLeftBig.js +4 -0
  43. package/dist/fading_entrances/fadeInRight.js +4 -0
  44. package/dist/fading_entrances/fadeInRightBig.js +4 -0
  45. package/dist/fading_entrances/fadeInTopLeft.js +4 -0
  46. package/dist/fading_entrances/fadeInTopRight.js +4 -0
  47. package/dist/fading_entrances/fadeInUp.js +4 -0
  48. package/dist/fading_entrances/fadeInUpBig.js +4 -0
  49. package/dist/fading_exits/fadeOut.js +4 -0
  50. package/dist/fading_exits/fadeOutBottomLeft.js +4 -0
  51. package/dist/fading_exits/fadeOutBottomRight.js +4 -0
  52. package/dist/fading_exits/fadeOutDown.js +4 -0
  53. package/dist/fading_exits/fadeOutDownBig.js +4 -0
  54. package/dist/fading_exits/fadeOutLeft.js +4 -0
  55. package/dist/fading_exits/fadeOutLeftBig.js +4 -0
  56. package/dist/fading_exits/fadeOutRight.js +4 -0
  57. package/dist/fading_exits/fadeOutRightBig.js +4 -0
  58. package/dist/fading_exits/fadeOutTopLeft.js +4 -0
  59. package/dist/fading_exits/fadeOutTopRight.js +4 -0
  60. package/dist/fading_exits/fadeOutUp.js +4 -0
  61. package/dist/fading_exits/fadeOutUpBig.js +4 -0
  62. package/dist/flippers/flip.js +27 -0
  63. package/dist/flippers/flipInX.js +7 -0
  64. package/dist/flippers/flipInY.js +7 -0
  65. package/dist/flippers/flipOutX.js +5 -0
  66. package/dist/flippers/flipOutY.js +5 -0
  67. package/dist/index.d.ts +5 -0
  68. package/dist/index.js +99 -0
  69. package/dist/lightspeed/lightSpeedInLeft.js +6 -0
  70. package/dist/lightspeed/lightSpeedInRight.js +6 -0
  71. package/dist/lightspeed/lightSpeedOutLeft.js +4 -0
  72. package/dist/lightspeed/lightSpeedOutRight.js +4 -0
  73. package/dist/rotating_entrances/rotateIn.js +4 -0
  74. package/dist/rotating_entrances/rotateInDownLeft.js +4 -0
  75. package/dist/rotating_entrances/rotateInDownRight.js +4 -0
  76. package/dist/rotating_entrances/rotateInUpLeft.js +4 -0
  77. package/dist/rotating_entrances/rotateInUpRight.js +4 -0
  78. package/dist/rotating_exits/rotateOut.js +4 -0
  79. package/dist/rotating_exits/rotateOutDownLeft.js +4 -0
  80. package/dist/rotating_exits/rotateOutDownRight.js +4 -0
  81. package/dist/rotating_exits/rotateOutUpLeft.js +4 -0
  82. package/dist/rotating_exits/rotateOutUpRight.js +4 -0
  83. package/dist/sliding_entrances/slideInDown.js +4 -0
  84. package/dist/sliding_entrances/slideInLeft.js +4 -0
  85. package/dist/sliding_entrances/slideInRight.js +4 -0
  86. package/dist/sliding_entrances/slideInUp.js +4 -0
  87. package/dist/sliding_exits/slideOutDown.js +4 -0
  88. package/dist/sliding_exits/slideOutLeft.js +4 -0
  89. package/dist/sliding_exits/slideOutRight.js +4 -0
  90. package/dist/sliding_exits/slideOutUp.js +4 -0
  91. package/dist/specials/hinge.js +8 -0
  92. package/dist/specials/jackInTheBox.js +6 -0
  93. package/dist/specials/rollIn.js +4 -0
  94. package/dist/specials/rollOut.js +4 -0
  95. package/dist/zooming_entrances/zoomIn.js +4 -0
  96. package/dist/zooming_entrances/zoomInDown.js +14 -0
  97. package/dist/zooming_entrances/zoomInLeft.js +14 -0
  98. package/dist/zooming_entrances/zoomInRight.js +14 -0
  99. package/dist/zooming_entrances/zoomInUp.js +14 -0
  100. package/dist/zooming_exits/zoomOut.js +5 -0
  101. package/dist/zooming_exits/zoomOutDown.js +14 -0
  102. package/dist/zooming_exits/zoomOutLeft.js +4 -0
  103. package/dist/zooming_exits/zoomOutRight.js +4 -0
  104. package/dist/zooming_exits/zoomOutUp.js +14 -0
  105. package/package.json +44 -0
package/LICENSE.md ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2020 A Beautiful Site, LLC
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Tovuti Animations
2
+
3
+ Your favorite [animate.css](https://animate.style/) effects available as ES modules for use with the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API).
4
+
5
+ - 🏆 ~100 quality animations
6
+ - 🎾 ~30 popular easings
7
+ - 🚚 Works with CDNs
8
+ - 🌲 Fully tree-shakeable
9
+
10
+ [Try it on JSFiddle](https://jsfiddle.net/tovutifunk/ohjmkgb1)
11
+
12
+ This module was built for [Tovuti](https://prodkt.cloud/), but it works well as a stand-alone library too!
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ npm install @tovutifunk/animations
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Importing all animations:
23
+
24
+ ```js
25
+ import * as animations from '@tovutifunk/animations';
26
+ ```
27
+
28
+ Importing individual animations:
29
+
30
+ ```js
31
+ import { bounce } from '@tovutifunk/animations';
32
+ ```
33
+
34
+ Importing easings:
35
+
36
+ ```js
37
+ import { easings } from '@tovutifunk/animations';
38
+ ```
39
+
40
+ Animating an element:
41
+
42
+ ```html
43
+ <div style="display: block; width: 100px; height: 100px; background: tomato; margin: 2rem;"></div>
44
+
45
+ <script type="module">
46
+ import { easings, flip } from 'https://cdn.jsdelivr.net/npm/@tovutifunk/animations@1/dist/index.js';
47
+
48
+ const box = document.querySelector('div');
49
+
50
+ box.animate(flip, {
51
+ duration: 1500,
52
+ iterations: Infinity,
53
+ easing: easings.easeInSine
54
+ });
55
+ </script>
56
+ ```
57
+
58
+ This example uses the [jsDelivr CDN](https://www.jsdelivr.com/). To import the library locally, install it and make `node_modules/@tovutifunk/animations/dist` available to your app or bundler.
59
+
60
+ ## Developers
61
+
62
+ This script parses all animation stylesheets found in `node_modules/animate.css` and generates [keyframe objects](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Keyframe_Formats) that you can use with the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). As animations are tweaked and added to animate.css, the keyframes herein will be kept in sync when rerunning the script.
63
+
64
+ To build the project, run:
65
+
66
+ ```bash
67
+ npm run build
68
+ ```
69
+
70
+ This will purge and rebuild the `dist` directory.
package/dist/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Daniel Eden
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,15 @@
1
+ export const bounce = [
2
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.2, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
4
+ { offset: 0.4, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -30px, 0) scaleY(1.1)' },
5
+ { offset: 0.43, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -30px, 0) scaleY(1.1)' },
6
+ { offset: 0.53, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' },
7
+ { offset: 0.7, easing: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', transform: 'translate3d(0, -15px, 0) scaleY(1.05)' },
8
+ {
9
+ offset: 0.8,
10
+ 'transition-timing-function': 'cubic-bezier(0.215, 0.61, 0.355, 1)',
11
+ transform: 'translate3d(0, 0, 0) scaleY(0.95)'
12
+ },
13
+ { offset: 0.9, transform: 'translate3d(0, -4px, 0) scaleY(1.02)' },
14
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)', transform: 'translate3d(0, 0, 0)' }
15
+ ];
@@ -0,0 +1,7 @@
1
+ export const flash = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 0.25, opacity: '0' },
4
+ { offset: 0.5, opacity: '1' },
5
+ { offset: 0.75, opacity: '0' },
6
+ { offset: 1, opacity: '1' }
7
+ ];
@@ -0,0 +1,8 @@
1
+ export const headShake = [
2
+ { offset: 0, transform: 'translateX(0)' },
3
+ { offset: 0.065, transform: 'translateX(-6px) rotateY(-9deg)' },
4
+ { offset: 0.185, transform: 'translateX(5px) rotateY(7deg)' },
5
+ { offset: 0.315, transform: 'translateX(-3px) rotateY(-5deg)' },
6
+ { offset: 0.435, transform: 'translateX(2px) rotateY(3deg)' },
7
+ { offset: 0.5, transform: 'translateX(0)' }
8
+ ];
@@ -0,0 +1,7 @@
1
+ export const heartBeat = [
2
+ { offset: 0, transform: 'scale(1)' },
3
+ { offset: 0.14, transform: 'scale(1.3)' },
4
+ { offset: 0.28, transform: 'scale(1)' },
5
+ { offset: 0.42, transform: 'scale(1.3)' },
6
+ { offset: 0.7, transform: 'scale(1)' }
7
+ ];
@@ -0,0 +1,12 @@
1
+ export const jello = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.111, transform: 'translate3d(0, 0, 0)' },
4
+ { offset: 0.222, transform: 'skewX(-12.5deg) skewY(-12.5deg)' },
5
+ { offset: 0.33299999999999996, transform: 'skewX(6.25deg) skewY(6.25deg)' },
6
+ { offset: 0.444, transform: 'skewX(-3.125deg) skewY(-3.125deg)' },
7
+ { offset: 0.555, transform: 'skewX(1.5625deg) skewY(1.5625deg)' },
8
+ { offset: 0.6659999999999999, transform: 'skewX(-0.78125deg) skewY(-0.78125deg)' },
9
+ { offset: 0.777, transform: 'skewX(0.390625deg) skewY(0.390625deg)' },
10
+ { offset: 0.888, transform: 'skewX(-0.1953125deg) skewY(-0.1953125deg)' },
11
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
12
+ ];
@@ -0,0 +1,5 @@
1
+ export const pulse = [
2
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
3
+ { offset: 0.5, transform: 'scale3d(1.05, 1.05, 1.05)' },
4
+ { offset: 1, transform: 'scale3d(1, 1, 1)' }
5
+ ];
@@ -0,0 +1,9 @@
1
+ export const rubberBand = [
2
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
3
+ { offset: 0.3, transform: 'scale3d(1.25, 0.75, 1)' },
4
+ { offset: 0.4, transform: 'scale3d(0.75, 1.25, 1)' },
5
+ { offset: 0.5, transform: 'scale3d(1.15, 0.85, 1)' },
6
+ { offset: 0.65, transform: 'scale3d(0.95, 1.05, 1)' },
7
+ { offset: 0.75, transform: 'scale3d(1.05, 0.95, 1)' },
8
+ { offset: 1, transform: 'scale3d(1, 1, 1)' }
9
+ ];
@@ -0,0 +1,13 @@
1
+ export const shake = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
4
+ { offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
5
+ { offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
6
+ { offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
7
+ { offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
8
+ { offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
9
+ { offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
10
+ { offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
11
+ { offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
12
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
13
+ ];
@@ -0,0 +1,13 @@
1
+ export const shakeX = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.1, transform: 'translate3d(-10px, 0, 0)' },
4
+ { offset: 0.2, transform: 'translate3d(10px, 0, 0)' },
5
+ { offset: 0.3, transform: 'translate3d(-10px, 0, 0)' },
6
+ { offset: 0.4, transform: 'translate3d(10px, 0, 0)' },
7
+ { offset: 0.5, transform: 'translate3d(-10px, 0, 0)' },
8
+ { offset: 0.6, transform: 'translate3d(10px, 0, 0)' },
9
+ { offset: 0.7, transform: 'translate3d(-10px, 0, 0)' },
10
+ { offset: 0.8, transform: 'translate3d(10px, 0, 0)' },
11
+ { offset: 0.9, transform: 'translate3d(-10px, 0, 0)' },
12
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
13
+ ];
@@ -0,0 +1,13 @@
1
+ export const shakeY = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.1, transform: 'translate3d(0, -10px, 0)' },
4
+ { offset: 0.2, transform: 'translate3d(0, 10px, 0)' },
5
+ { offset: 0.3, transform: 'translate3d(0, -10px, 0)' },
6
+ { offset: 0.4, transform: 'translate3d(0, 10px, 0)' },
7
+ { offset: 0.5, transform: 'translate3d(0, -10px, 0)' },
8
+ { offset: 0.6, transform: 'translate3d(0, 10px, 0)' },
9
+ { offset: 0.7, transform: 'translate3d(0, -10px, 0)' },
10
+ { offset: 0.8, transform: 'translate3d(0, 10px, 0)' },
11
+ { offset: 0.9, transform: 'translate3d(0, -10px, 0)' },
12
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
13
+ ];
@@ -0,0 +1,7 @@
1
+ export const swing = [
2
+ { offset: 0.2, transform: 'rotate3d(0, 0, 1, 15deg)' },
3
+ { offset: 0.4, transform: 'rotate3d(0, 0, 1, -10deg)' },
4
+ { offset: 0.6, transform: 'rotate3d(0, 0, 1, 5deg)' },
5
+ { offset: 0.8, transform: 'rotate3d(0, 0, 1, -5deg)' },
6
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 0deg)' }
7
+ ];
@@ -0,0 +1,13 @@
1
+ export const tada = [
2
+ { offset: 0, transform: 'scale3d(1, 1, 1)' },
3
+ { offset: 0.1, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
4
+ { offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)' },
5
+ { offset: 0.3, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
6
+ { offset: 0.4, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
7
+ { offset: 0.5, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
8
+ { offset: 0.6, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
9
+ { offset: 0.7, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
10
+ { offset: 0.8, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)' },
11
+ { offset: 0.9, transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)' },
12
+ { offset: 1, transform: 'scale3d(1, 1, 1)' }
13
+ ];
@@ -0,0 +1,9 @@
1
+ export const wobble = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 0.15, transform: 'translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)' },
4
+ { offset: 0.3, transform: 'translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)' },
5
+ { offset: 0.45, transform: 'translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)' },
6
+ { offset: 0.6, transform: 'translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)' },
7
+ { offset: 0.75, transform: 'translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)' },
8
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
9
+ ];
@@ -0,0 +1,5 @@
1
+ export const backInDown = [
2
+ { offset: 0, transform: 'translateY(-1200px) scale(0.7)', opacity: '0.7' },
3
+ { offset: 0.8, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'scale(1)', opacity: '1' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backInLeft = [
2
+ { offset: 0, transform: 'translateX(-2000px) scale(0.7)', opacity: '0.7' },
3
+ { offset: 0.8, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'scale(1)', opacity: '1' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backInRight = [
2
+ { offset: 0, transform: 'translateX(2000px) scale(0.7)', opacity: '0.7' },
3
+ { offset: 0.8, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'scale(1)', opacity: '1' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backInUp = [
2
+ { offset: 0, transform: 'translateY(1200px) scale(0.7)', opacity: '0.7' },
3
+ { offset: 0.8, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'scale(1)', opacity: '1' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backOutDown = [
2
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
3
+ { offset: 0.2, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'translateY(700px) scale(0.7)', opacity: '0.7' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backOutLeft = [
2
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
3
+ { offset: 0.2, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'translateX(-2000px) scale(0.7)', opacity: '0.7' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backOutRight = [
2
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
3
+ { offset: 0.2, transform: 'translateX(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'translateX(2000px) scale(0.7)', opacity: '0.7' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const backOutUp = [
2
+ { offset: 0, transform: 'scale(1)', opacity: '1' },
3
+ { offset: 0.2, transform: 'translateY(0px) scale(0.7)', opacity: '0.7' },
4
+ { offset: 1, transform: 'translateY(-700px) scale(0.7)', opacity: '0.7' }
5
+ ];
@@ -0,0 +1,14 @@
1
+ export const bounceIn = [
2
+ { offset: 0, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
3
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
4
+ { offset: 0.2, transform: 'scale3d(1.1, 1.1, 1.1)' },
5
+ { offset: 0.2, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
6
+ { offset: 0.4, transform: 'scale3d(0.9, 0.9, 0.9)' },
7
+ { offset: 0.4, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
8
+ { offset: 0.6, opacity: '1', transform: 'scale3d(1.03, 1.03, 1.03)' },
9
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
10
+ { offset: 0.8, transform: 'scale3d(0.97, 0.97, 0.97)' },
11
+ { offset: 0.8, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
12
+ { offset: 1, opacity: '1', transform: 'scale3d(1, 1, 1)' },
13
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
14
+ ];
@@ -0,0 +1,12 @@
1
+ export const bounceInDown = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, -3000px, 0) scaleY(3)' },
3
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
4
+ { offset: 0.6, opacity: '1', transform: 'translate3d(0, 25px, 0) scaleY(0.9)' },
5
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
6
+ { offset: 0.75, transform: 'translate3d(0, -10px, 0) scaleY(0.95)' },
7
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
8
+ { offset: 0.9, transform: 'translate3d(0, 5px, 0) scaleY(0.985)' },
9
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
10
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
11
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
12
+ ];
@@ -0,0 +1,12 @@
1
+ export const bounceInLeft = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-3000px, 0, 0) scaleX(3)' },
3
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
4
+ { offset: 0.6, opacity: '1', transform: 'translate3d(25px, 0, 0) scaleX(1)' },
5
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
6
+ { offset: 0.75, transform: 'translate3d(-10px, 0, 0) scaleX(0.98)' },
7
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
8
+ { offset: 0.9, transform: 'translate3d(5px, 0, 0) scaleX(0.995)' },
9
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
10
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
11
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
12
+ ];
@@ -0,0 +1,12 @@
1
+ export const bounceInRight = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(3000px, 0, 0) scaleX(3)' },
3
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
4
+ { offset: 0.6, opacity: '1', transform: 'translate3d(-25px, 0, 0) scaleX(1)' },
5
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
6
+ { offset: 0.75, transform: 'translate3d(10px, 0, 0) scaleX(0.98)' },
7
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
8
+ { offset: 0.9, transform: 'translate3d(-5px, 0, 0) scaleX(0.995)' },
9
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
10
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
11
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
12
+ ];
@@ -0,0 +1,12 @@
1
+ export const bounceInUp = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 3000px, 0) scaleY(5)' },
3
+ { offset: 0, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
4
+ { offset: 0.6, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
5
+ { offset: 0.6, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
6
+ { offset: 0.75, transform: 'translate3d(0, 10px, 0) scaleY(0.95)' },
7
+ { offset: 0.75, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
8
+ { offset: 0.9, transform: 'translate3d(0, -5px, 0) scaleY(0.985)' },
9
+ { offset: 0.9, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' },
10
+ { offset: 1, transform: 'translate3d(0, 0, 0)' },
11
+ { offset: 1, easing: 'cubic-bezier(0.215, 0.61, 0.355, 1)' }
12
+ ];
@@ -0,0 +1,6 @@
1
+ export const bounceOut = [
2
+ { offset: 0.2, transform: 'scale3d(0.9, 0.9, 0.9)' },
3
+ { offset: 0.5, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
4
+ { offset: 0.55, opacity: '1', transform: 'scale3d(1.1, 1.1, 1.1)' },
5
+ { offset: 1, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' }
6
+ ];
@@ -0,0 +1,6 @@
1
+ export const bounceOutDown = [
2
+ { offset: 0.2, transform: 'translate3d(0, 10px, 0) scaleY(0.985)' },
3
+ { offset: 0.4, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
4
+ { offset: 0.45, opacity: '1', transform: 'translate3d(0, -20px, 0) scaleY(0.9)' },
5
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 2000px, 0) scaleY(3)' }
6
+ ];
@@ -0,0 +1,4 @@
1
+ export const bounceOutLeft = [
2
+ { offset: 0.2, opacity: '1', transform: 'translate3d(20px, 0, 0) scaleX(0.9)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(-2000px, 0, 0) scaleX(2)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const bounceOutRight = [
2
+ { offset: 0.2, opacity: '1', transform: 'translate3d(-20px, 0, 0) scaleX(0.9)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(2000px, 0, 0) scaleX(2)' }
4
+ ];
@@ -0,0 +1,6 @@
1
+ export const bounceOutUp = [
2
+ { offset: 0.2, transform: 'translate3d(0, -10px, 0) scaleY(0.985)' },
3
+ { offset: 0.4, opacity: '1', transform: 'translate3d(0, 20px, 0) scaleY(0.9)' },
4
+ { offset: 0.45, opacity: '1', transform: 'translate3d(0, 20px, 0) scaleY(0.9)' },
5
+ { offset: 1, opacity: '0', transform: 'translate3d(0, -2000px, 0) scaleY(3)' }
6
+ ];
@@ -0,0 +1,31 @@
1
+ export const easings = {
2
+ linear: 'linear',
3
+ ease: 'ease',
4
+ easeIn: 'ease-in',
5
+ easeOut: 'ease-out',
6
+ easeInOut: 'ease-in-out',
7
+ easeInSine: 'cubic-bezier(0.47, 0, 0.745, 0.715)',
8
+ easeOutSine: 'cubic-bezier(0.39, 0.575, 0.565, 1)',
9
+ easeInOutSine: 'cubic-bezier(0.445, 0.05, 0.55, 0.95)',
10
+ easeInQuad: 'cubic-bezier(0.55, 0.085, 0.68, 0.53)',
11
+ easeOutQuad: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)',
12
+ easeInOutQuad: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)',
13
+ easeInCubic: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)',
14
+ easeOutCubic: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
15
+ easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
16
+ easeInQuart: 'cubic-bezier(0.895, 0.03, 0.685, 0.22)',
17
+ easeOutQuart: 'cubic-bezier(0.165, 0.84, 0.44, 1)',
18
+ easeInOutQuart: 'cubic-bezier(0.77, 0, 0.175, 1)',
19
+ easeInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
20
+ easeOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
21
+ easeInOutQuint: 'cubic-bezier(0.86, 0, 0.07, 1)',
22
+ easeInExpo: 'cubic-bezier(0.95, 0.05, 0.795, 0.035)',
23
+ easeOutExpo: 'cubic-bezier(0.19, 1, 0.22, 1)',
24
+ easeInOutExpo: 'cubic-bezier(1, 0, 0, 1)',
25
+ easeInCirc: 'cubic-bezier(0.6, 0.04, 0.98, 0.335)',
26
+ easeOutCirc: 'cubic-bezier(0.075, 0.82, 0.165, 1)',
27
+ easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.15, 0.86)',
28
+ easeInBack: 'cubic-bezier(0.6, -0.28, 0.735, 0.045)',
29
+ easeOutBack: 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
30
+ easeInOutBack: 'cubic-bezier(0.68, -0.55, 0.265, 1.55)'
31
+ };
@@ -0,0 +1,4 @@
1
+ export const fadeIn = [
2
+ { offset: 0, opacity: '0' },
3
+ { offset: 1, opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInBottomLeft = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, 100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInBottomRight = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, 100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInDown = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, -100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInDownBig = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, -2000px, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInLeft = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, 0, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInLeftBig = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-2000px, 0, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInRight = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, 0, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInRightBig = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(2000px, 0, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInTopLeft = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, -100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInTopRight = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(100%, -100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInUp = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 100%, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeInUpBig = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(0, 2000px, 0)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOut = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutBottomLeft = [
2
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, 100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutBottomRight = [
2
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, 100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutDown = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutDownBig = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(0, 2000px, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutLeft = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutLeftBig = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(-2000px, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutRight = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutRightBig = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(2000px, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutTopLeft = [
2
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(-100%, -100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutTopRight = [
2
+ { offset: 0, opacity: '1', transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, -100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutUp = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(0, -100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const fadeOutUpBig = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(0, -2000px, 0)' }
4
+ ];