@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
@@ -0,0 +1,27 @@
1
+ export const flip = [
2
+ {
3
+ offset: 0,
4
+ transform: 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)',
5
+ easing: 'ease-out'
6
+ },
7
+ {
8
+ offset: 0.4,
9
+ transform: 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n rotate3d(0, 1, 0, -190deg)',
10
+ easing: 'ease-out'
11
+ },
12
+ {
13
+ offset: 0.5,
14
+ transform: 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)\n rotate3d(0, 1, 0, -170deg)',
15
+ easing: 'ease-in'
16
+ },
17
+ {
18
+ offset: 0.8,
19
+ transform: 'perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)\n rotate3d(0, 1, 0, 0deg)',
20
+ easing: 'ease-in'
21
+ },
22
+ {
23
+ offset: 1,
24
+ transform: 'perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)',
25
+ easing: 'ease-in'
26
+ }
27
+ ];
@@ -0,0 +1,7 @@
1
+ export const flipInX = [
2
+ { offset: 0, transform: 'perspective(400px) rotate3d(1, 0, 0, 90deg)', easing: 'ease-in', opacity: '0' },
3
+ { offset: 0.4, transform: 'perspective(400px) rotate3d(1, 0, 0, -20deg)', easing: 'ease-in' },
4
+ { offset: 0.6, transform: 'perspective(400px) rotate3d(1, 0, 0, 10deg)', opacity: '1' },
5
+ { offset: 0.8, transform: 'perspective(400px) rotate3d(1, 0, 0, -5deg)' },
6
+ { offset: 1, transform: 'perspective(400px)' }
7
+ ];
@@ -0,0 +1,7 @@
1
+ export const flipInY = [
2
+ { offset: 0, transform: 'perspective(400px) rotate3d(0, 1, 0, 90deg)', easing: 'ease-in', opacity: '0' },
3
+ { offset: 0.4, transform: 'perspective(400px) rotate3d(0, 1, 0, -20deg)', easing: 'ease-in' },
4
+ { offset: 0.6, transform: 'perspective(400px) rotate3d(0, 1, 0, 10deg)', opacity: '1' },
5
+ { offset: 0.8, transform: 'perspective(400px) rotate3d(0, 1, 0, -5deg)' },
6
+ { offset: 1, transform: 'perspective(400px)' }
7
+ ];
@@ -0,0 +1,5 @@
1
+ export const flipOutX = [
2
+ { offset: 0, transform: 'perspective(400px)' },
3
+ { offset: 0.3, transform: 'perspective(400px) rotate3d(1, 0, 0, -20deg)', opacity: '1' },
4
+ { offset: 1, transform: 'perspective(400px) rotate3d(1, 0, 0, 90deg)', opacity: '0' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ export const flipOutY = [
2
+ { offset: 0, transform: 'perspective(400px)' },
3
+ { offset: 0.3, transform: 'perspective(400px) rotate3d(0, 1, 0, -15deg)', opacity: '1' },
4
+ { offset: 1, transform: 'perspective(400px) rotate3d(0, 1, 0, 90deg)', opacity: '0' }
5
+ ];
@@ -0,0 +1,5 @@
1
+ declare module '@tovutifunk/animations' {
2
+ export type Animation = Keyframe[];
3
+ export const animations: Animation[];
4
+ export const easings: { [key: string]: string };
5
+ }
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ export * from './attention_seekers/bounce.js';
2
+ export * from './attention_seekers/flash.js';
3
+ export * from './attention_seekers/headShake.js';
4
+ export * from './attention_seekers/heartBeat.js';
5
+ export * from './attention_seekers/jello.js';
6
+ export * from './attention_seekers/pulse.js';
7
+ export * from './attention_seekers/rubberBand.js';
8
+ export * from './attention_seekers/shake.js';
9
+ export * from './attention_seekers/shakeX.js';
10
+ export * from './attention_seekers/shakeY.js';
11
+ export * from './attention_seekers/swing.js';
12
+ export * from './attention_seekers/tada.js';
13
+ export * from './attention_seekers/wobble.js';
14
+ export * from './back_entrances/backInDown.js';
15
+ export * from './back_entrances/backInLeft.js';
16
+ export * from './back_entrances/backInRight.js';
17
+ export * from './back_entrances/backInUp.js';
18
+ export * from './back_exits/backOutDown.js';
19
+ export * from './back_exits/backOutLeft.js';
20
+ export * from './back_exits/backOutRight.js';
21
+ export * from './back_exits/backOutUp.js';
22
+ export * from './bouncing_entrances/bounceIn.js';
23
+ export * from './bouncing_entrances/bounceInDown.js';
24
+ export * from './bouncing_entrances/bounceInLeft.js';
25
+ export * from './bouncing_entrances/bounceInRight.js';
26
+ export * from './bouncing_entrances/bounceInUp.js';
27
+ export * from './bouncing_exits/bounceOut.js';
28
+ export * from './bouncing_exits/bounceOutDown.js';
29
+ export * from './bouncing_exits/bounceOutLeft.js';
30
+ export * from './bouncing_exits/bounceOutRight.js';
31
+ export * from './bouncing_exits/bounceOutUp.js';
32
+ export * from './fading_entrances/fadeIn.js';
33
+ export * from './fading_entrances/fadeInBottomLeft.js';
34
+ export * from './fading_entrances/fadeInBottomRight.js';
35
+ export * from './fading_entrances/fadeInDown.js';
36
+ export * from './fading_entrances/fadeInDownBig.js';
37
+ export * from './fading_entrances/fadeInLeft.js';
38
+ export * from './fading_entrances/fadeInLeftBig.js';
39
+ export * from './fading_entrances/fadeInRight.js';
40
+ export * from './fading_entrances/fadeInRightBig.js';
41
+ export * from './fading_entrances/fadeInTopLeft.js';
42
+ export * from './fading_entrances/fadeInTopRight.js';
43
+ export * from './fading_entrances/fadeInUp.js';
44
+ export * from './fading_entrances/fadeInUpBig.js';
45
+ export * from './fading_exits/fadeOut.js';
46
+ export * from './fading_exits/fadeOutBottomLeft.js';
47
+ export * from './fading_exits/fadeOutBottomRight.js';
48
+ export * from './fading_exits/fadeOutDown.js';
49
+ export * from './fading_exits/fadeOutDownBig.js';
50
+ export * from './fading_exits/fadeOutLeft.js';
51
+ export * from './fading_exits/fadeOutLeftBig.js';
52
+ export * from './fading_exits/fadeOutRight.js';
53
+ export * from './fading_exits/fadeOutRightBig.js';
54
+ export * from './fading_exits/fadeOutTopLeft.js';
55
+ export * from './fading_exits/fadeOutTopRight.js';
56
+ export * from './fading_exits/fadeOutUp.js';
57
+ export * from './fading_exits/fadeOutUpBig.js';
58
+ export * from './flippers/flip.js';
59
+ export * from './flippers/flipInX.js';
60
+ export * from './flippers/flipInY.js';
61
+ export * from './flippers/flipOutX.js';
62
+ export * from './flippers/flipOutY.js';
63
+ export * from './lightspeed/lightSpeedInLeft.js';
64
+ export * from './lightspeed/lightSpeedInRight.js';
65
+ export * from './lightspeed/lightSpeedOutLeft.js';
66
+ export * from './lightspeed/lightSpeedOutRight.js';
67
+ export * from './rotating_entrances/rotateIn.js';
68
+ export * from './rotating_entrances/rotateInDownLeft.js';
69
+ export * from './rotating_entrances/rotateInDownRight.js';
70
+ export * from './rotating_entrances/rotateInUpLeft.js';
71
+ export * from './rotating_entrances/rotateInUpRight.js';
72
+ export * from './rotating_exits/rotateOut.js';
73
+ export * from './rotating_exits/rotateOutDownLeft.js';
74
+ export * from './rotating_exits/rotateOutDownRight.js';
75
+ export * from './rotating_exits/rotateOutUpLeft.js';
76
+ export * from './rotating_exits/rotateOutUpRight.js';
77
+ export * from './sliding_entrances/slideInDown.js';
78
+ export * from './sliding_entrances/slideInLeft.js';
79
+ export * from './sliding_entrances/slideInRight.js';
80
+ export * from './sliding_entrances/slideInUp.js';
81
+ export * from './sliding_exits/slideOutDown.js';
82
+ export * from './sliding_exits/slideOutLeft.js';
83
+ export * from './sliding_exits/slideOutRight.js';
84
+ export * from './sliding_exits/slideOutUp.js';
85
+ export * from './specials/hinge.js';
86
+ export * from './specials/jackInTheBox.js';
87
+ export * from './specials/rollIn.js';
88
+ export * from './specials/rollOut.js';
89
+ export * from './zooming_entrances/zoomIn.js';
90
+ export * from './zooming_entrances/zoomInDown.js';
91
+ export * from './zooming_entrances/zoomInLeft.js';
92
+ export * from './zooming_entrances/zoomInRight.js';
93
+ export * from './zooming_entrances/zoomInUp.js';
94
+ export * from './zooming_exits/zoomOut.js';
95
+ export * from './zooming_exits/zoomOutDown.js';
96
+ export * from './zooming_exits/zoomOutLeft.js';
97
+ export * from './zooming_exits/zoomOutRight.js';
98
+ export * from './zooming_exits/zoomOutUp.js';
99
+ export { easings } from './easings/easings.js';
@@ -0,0 +1,6 @@
1
+ export const lightSpeedInLeft = [
2
+ { offset: 0, transform: 'translate3d(-100%, 0, 0) skewX(30deg)', opacity: '0' },
3
+ { offset: 0.6, transform: 'skewX(-20deg)', opacity: '1' },
4
+ { offset: 0.8, transform: 'skewX(5deg)' },
5
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
6
+ ];
@@ -0,0 +1,6 @@
1
+ export const lightSpeedInRight = [
2
+ { offset: 0, transform: 'translate3d(100%, 0, 0) skewX(-30deg)', opacity: '0' },
3
+ { offset: 0.6, transform: 'skewX(20deg)', opacity: '1' },
4
+ { offset: 0.8, transform: 'skewX(-5deg)' },
5
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
6
+ ];
@@ -0,0 +1,4 @@
1
+ export const lightSpeedOutLeft = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'translate3d(-100%, 0, 0) skewX(-30deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const lightSpeedOutRight = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'translate3d(100%, 0, 0) skewX(30deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateIn = [
2
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -200deg)', opacity: '0' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateInDownLeft = [
2
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateInDownRight = [
2
+ { offset: 0, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateInUpLeft = [
2
+ { offset: 0, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateInUpRight = [
2
+ { offset: 0, transform: 'rotate3d(0, 0, 1, -90deg)', opacity: '0' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)', opacity: '1' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateOut = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 200deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateOutDownLeft = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 45deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateOutDownRight = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateOutUpLeft = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'rotate3d(0, 0, 1, -45deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rotateOutUpRight = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, transform: 'rotate3d(0, 0, 1, 90deg)', opacity: '0' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideInDown = [
2
+ { offset: 0, transform: 'translate3d(0, -100%, 0)', visibility: 'visible' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideInLeft = [
2
+ { offset: 0, transform: 'translate3d(-100%, 0, 0)', visibility: 'visible' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideInRight = [
2
+ { offset: 0, transform: 'translate3d(100%, 0, 0)', visibility: 'visible' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideInUp = [
2
+ { offset: 0, transform: 'translate3d(0, 100%, 0)', visibility: 'visible' },
3
+ { offset: 1, transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideOutDown = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(0, 100%, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideOutLeft = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(-100%, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideOutRight = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(100%, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const slideOutUp = [
2
+ { offset: 0, transform: 'translate3d(0, 0, 0)' },
3
+ { offset: 1, visibility: 'hidden', transform: 'translate3d(0, -100%, 0)' }
4
+ ];
@@ -0,0 +1,8 @@
1
+ export const hinge = [
2
+ { offset: 0, easing: 'ease-in-out' },
3
+ { offset: 0.2, transform: 'rotate3d(0, 0, 1, 80deg)', easing: 'ease-in-out' },
4
+ { offset: 0.4, transform: 'rotate3d(0, 0, 1, 60deg)', easing: 'ease-in-out', opacity: '1' },
5
+ { offset: 0.6, transform: 'rotate3d(0, 0, 1, 80deg)', easing: 'ease-in-out' },
6
+ { offset: 0.8, transform: 'rotate3d(0, 0, 1, 60deg)', easing: 'ease-in-out', opacity: '1' },
7
+ { offset: 1, transform: 'translate3d(0, 700px, 0)', opacity: '0' }
8
+ ];
@@ -0,0 +1,6 @@
1
+ export const jackInTheBox = [
2
+ { offset: 0, opacity: '0', transform: 'scale(0.1) rotate(30deg)', 'transform-origin': 'center bottom' },
3
+ { offset: 0.5, transform: 'rotate(-10deg)' },
4
+ { offset: 0.7, transform: 'rotate(3deg)' },
5
+ { offset: 1, opacity: '1', transform: 'scale(1)' }
6
+ ];
@@ -0,0 +1,4 @@
1
+ export const rollIn = [
2
+ { offset: 0, opacity: '0', transform: 'translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)' },
3
+ { offset: 1, opacity: '1', transform: 'translate3d(0, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const rollOut = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 1, opacity: '0', transform: 'translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const zoomIn = [
2
+ { offset: 0, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
3
+ { offset: 0.5, opacity: '1' }
4
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomInDown = [
2
+ {
3
+ offset: 0,
4
+ opacity: '0',
5
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 0.6,
10
+ opacity: '1',
11
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomInLeft = [
2
+ {
3
+ offset: 0,
4
+ opacity: '0',
5
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 0.6,
10
+ opacity: '1',
11
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomInRight = [
2
+ {
3
+ offset: 0,
4
+ opacity: '0',
5
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 0.6,
10
+ opacity: '1',
11
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomInUp = [
2
+ {
3
+ offset: 0,
4
+ opacity: '0',
5
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 0.6,
10
+ opacity: '1',
11
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
@@ -0,0 +1,5 @@
1
+ export const zoomOut = [
2
+ { offset: 0, opacity: '1' },
3
+ { offset: 0.5, opacity: '0', transform: 'scale3d(0.3, 0.3, 0.3)' },
4
+ { offset: 1, opacity: '0' }
5
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomOutDown = [
2
+ {
3
+ offset: 0.4,
4
+ opacity: '1',
5
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 1,
10
+ opacity: '0',
11
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
@@ -0,0 +1,4 @@
1
+ export const zoomOutLeft = [
2
+ { offset: 0.4, opacity: '1', transform: 'scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'scale(0.1) translate3d(-2000px, 0, 0)' }
4
+ ];
@@ -0,0 +1,4 @@
1
+ export const zoomOutRight = [
2
+ { offset: 0.4, opacity: '1', transform: 'scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)' },
3
+ { offset: 1, opacity: '0', transform: 'scale(0.1) translate3d(2000px, 0, 0)' }
4
+ ];
@@ -0,0 +1,14 @@
1
+ export const zoomOutUp = [
2
+ {
3
+ offset: 0.4,
4
+ opacity: '1',
5
+ transform: 'scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)',
6
+ easing: 'cubic-bezier(0.55, 0.055, 0.675, 0.19)'
7
+ },
8
+ {
9
+ offset: 1,
10
+ opacity: '0',
11
+ transform: 'scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)',
12
+ easing: 'cubic-bezier(0.175, 0.885, 0.32, 1)'
13
+ }
14
+ ];
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@prodkt/animations",
3
+ "description": "Your favorite animate.css effects available as ES modules for use with the Web Animations API.",
4
+ "version": "1.1.0",
5
+ "homepage": "https://github.com/prodkt-cloud/animations",
6
+ "author": "Bryan Funk",
7
+ "license": "MIT",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.js",
10
+ "type": "module",
11
+ "types": "dist/index.d.ts",
12
+ "scripts": {
13
+ "build": "node src/index.cjs",
14
+ "test": "echo \"Error: no test specified\" && exit 1"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Prodkt-Cloud/animations.git"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/prodkt-cloud/animations/issues"
22
+ },
23
+ "funding": {
24
+ "type": "individual",
25
+ "url": "https://github.com/sponsors/tovutifunk"
26
+ },
27
+ "files": [
28
+ "dist/"
29
+ ],
30
+ "keywords": [
31
+ "animation",
32
+ "web animations api",
33
+ "animate.css"
34
+ ],
35
+ "dependencies": {},
36
+ "devDependencies": {
37
+ "animate.css": "^4.1.1",
38
+ "css": "^3.0.0",
39
+ "del": "^6.0.0",
40
+ "glob": "^7.1.6",
41
+ "mkdirp": "^1.0.4",
42
+ "prettier": "^2.2.1"
43
+ }
44
+ }