move.gl 0.0.1

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.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -0
  3. package/css/move.gl.css +2 -0
  4. package/css/move.gl.min.css +2 -0
  5. package/package.json +55 -0
  6. package/scss/classes/_animations.scss +576 -0
  7. package/scss/classes/_index.scss +0 -0
  8. package/scss/classes/_transforms.scss +124 -0
  9. package/scss/classes/keyboard.scss +18 -0
  10. package/scss/classes/screensaver.scss +15 -0
  11. package/scss/dev/_banner.scss +36 -0
  12. package/scss/dev/_debug.scss +18 -0
  13. package/scss/dev/_deprecation.scss +10 -0
  14. package/scss/dev/_index.scss +8 -0
  15. package/scss/dev/_modules.scss +24 -0
  16. package/scss/effects/_filter.scss +176 -0
  17. package/scss/effects/_index.scss +23 -0
  18. package/scss/effects/_opacity.scss +62 -0
  19. package/scss/effects/_shadow.scss +175 -0
  20. package/scss/functions/_index.scss +0 -0
  21. package/scss/functions/scenes/_bubble.scss +19 -0
  22. package/scss/functions/scenes/_index.scss +20 -0
  23. package/scss/index.scss +0 -0
  24. package/scss/keyframes/_beat.scss +26 -0
  25. package/scss/keyframes/_index.scss +0 -0
  26. package/scss/maps/_index.scss +0 -0
  27. package/scss/maps/_mouse.scss +96 -0
  28. package/scss/mixins/_accessibility.scss +70 -0
  29. package/scss/mixins/_boot.scss +51 -0
  30. package/scss/mixins/_hover.scss +51 -0
  31. package/scss/mixins/_index.scss +0 -0
  32. package/scss/mixins/_selection.scss +321 -0
  33. package/scss/mixins/_shape.scss +44 -0
  34. package/scss/mixins/_touch.scss +95 -0
  35. package/scss/mixins/animations/--hover.scss +107 -0
  36. package/scss/mixins/animations/_base.scss +337 -0
  37. package/scss/mixins/animations/_beat.scss +119 -0
  38. package/scss/mixins/animations/_blink.scss +151 -0
  39. package/scss/mixins/animations/_bounce.scss +192 -0
  40. package/scss/mixins/animations/_elastic.scss +65 -0
  41. package/scss/mixins/animations/_fade.scss +154 -0
  42. package/scss/mixins/animations/_flash.scss +177 -0
  43. package/scss/mixins/animations/_flip.scss +72 -0
  44. package/scss/mixins/animations/_float.scss +126 -0
  45. package/scss/mixins/animations/_glow.scss +179 -0
  46. package/scss/mixins/animations/_heartbeat.scss +175 -0
  47. package/scss/mixins/animations/_hinge.scss +119 -0
  48. package/scss/mixins/animations/_index.scss +37 -0
  49. package/scss/mixins/animations/_jello.scss +129 -0
  50. package/scss/mixins/animations/_jiggle.scss +163 -0
  51. package/scss/mixins/animations/_lightspeed.scss +130 -0
  52. package/scss/mixins/animations/_nod.scss +161 -0
  53. package/scss/mixins/animations/_pop.scss +150 -0
  54. package/scss/mixins/animations/_pulse.scss +213 -0
  55. package/scss/mixins/animations/_ripple.scss +169 -0
  56. package/scss/mixins/animations/_roll.scss +261 -0
  57. package/scss/mixins/animations/_rotate.scss +428 -0
  58. package/scss/mixins/animations/_rubber.scss +116 -0
  59. package/scss/mixins/animations/_scale.scss +113 -0
  60. package/scss/mixins/animations/_shake.scss +182 -0
  61. package/scss/mixins/animations/_slide.scss +294 -0
  62. package/scss/mixins/animations/_spin.scss +219 -0
  63. package/scss/mixins/animations/_sway.scss +167 -0
  64. package/scss/mixins/animations/_swing.scss +247 -0
  65. package/scss/mixins/animations/_tada.scss +233 -0
  66. package/scss/mixins/animations/_twist.scss +177 -0
  67. package/scss/mixins/animations/_wave.scss +166 -0
  68. package/scss/mixins/animations/_wobble.scss +254 -0
  69. package/scss/mixins/animations/_zoom.scss +166 -0
  70. package/scss/mixins/effects/_filter.scss +148 -0
  71. package/scss/mixins/effects/_index.scss +0 -0
  72. package/scss/mixins/effects/_shadow.scss +21 -0
  73. package/scss/mixins/loaders/_index.scss +0 -0
  74. package/scss/mixins/loaders/_progress.scss +174 -0
  75. package/scss/mixins/loaders/_spinner.scss +101 -0
  76. package/scss/mixins/loaders/circle_01.scss +22 -0
  77. package/scss/mixins/loaders/circle_02.scss +19 -0
  78. package/scss/mixins/loaders/circle_03.scss +29 -0
  79. package/scss/mixins/loaders/circle_inner_01.scss +33 -0
  80. package/scss/mixins/loaders/circle_inner_02.scss +33 -0
  81. package/scss/mixins/loaders/circle_inner_03.scss +34 -0
  82. package/scss/mixins/mouse/_cursor.scss +182 -0
  83. package/scss/mixins/mouse/_index.scss +0 -0
  84. package/scss/mixins/mouse/_pointer.scss +258 -0
  85. package/scss/mixins/scroll/_index.scss +0 -0
  86. package/scss/mixins/scroll/_scroll.scss +104 -0
  87. package/scss/mixins/scroll/_scrollbar.scss +249 -0
  88. package/scss/mixins/transforms/_flip.scss +76 -0
  89. package/scss/mixins/transforms/_index.scss +23 -0
  90. package/scss/mixins/transforms/_matrix.scss +1 -0
  91. package/scss/mixins/transforms/_perspective.scss +11 -0
  92. package/scss/mixins/transforms/_rotate.scss +101 -0
  93. package/scss/mixins/transforms/_scale.scss +11 -0
  94. package/scss/mixins/transforms/_skew.scss +13 -0
  95. package/scss/mixins/transforms/_translate.scss +13 -0
  96. package/scss/mixins/transitions/_index.scss +0 -0
  97. package/scss/mixins/transitions/_transition.scss +13 -0
  98. package/scss/variables/_animation.scss +91 -0
  99. package/scss/variables/_index.scss +0 -0
  100. package/ts/ARContent.ts +27 -0
  101. package/ts/ARInteraction.ts +34 -0
  102. package/ts/AdaptiveUI.ts +25 -0
  103. package/ts/ContentStreaming.ts +20 -0
  104. package/ts/Draggable.ts +71 -0
  105. package/ts/DynamicEnvironment.ts +60 -0
  106. package/ts/Gesture.ts +168 -0
  107. package/ts/ImmersiveAudio.ts +40 -0
  108. package/ts/InteractiveCanvas.ts +177 -0
  109. package/ts/InteractiveVideo.ts +29 -0
  110. package/ts/Keyboard.ts +162 -0
  111. package/ts/RealTimeCollaboration.ts +25 -0
  112. package/ts/Screensaver.ts +140 -0
  113. package/ts/SpatialNavigation.ts +38 -0
  114. package/ts/UserProfile.ts +27 -0
  115. package/ts/VRExperience.ts +58 -0
  116. package/ts/VideoOverlay.ts +116 -0
  117. package/ts/index.ts +0 -0
@@ -0,0 +1,169 @@
1
+ // ============================================================================
2
+ // Poster
3
+ // ============================================================================
4
+
5
+ ////
6
+ ///
7
+ /// Ripple Animations Mixin Module
8
+ /// ===========================================================================
9
+ ///
10
+ /// This module ...
11
+ ///
12
+ ///
13
+ /// @group Animations
14
+ /// @author Scape Agency
15
+ /// @link https://move.gl
16
+ /// @since 0.1.0 initial release
17
+ /// @todo None
18
+ /// @access public
19
+ ///
20
+ ////
21
+
22
+
23
+ // ============================================================================
24
+ // Use
25
+ // ============================================================================
26
+
27
+ @use "../dev" as *;
28
+ @use "../variables" as *;
29
+ @use "../keyframes" as *;
30
+ @use "base" as *;
31
+
32
+
33
+ // ============================================================================
34
+ // Mixins
35
+ // ============================================================================
36
+
37
+
38
+ ///
39
+ /// Ripple Animation
40
+ /// Creates a ripple effect where the element scales up and fades out.
41
+ /// @name animate_ripple
42
+ /// @param {Number} $scale_start [1] - The initial scale of the ripple.
43
+ /// @param {Number} $scale_end [1.5] - The final scale of the ripple.
44
+ /// @param {Number} $opacity_start [1] - The initial opacity of the ripple.
45
+ /// @param {Number} $opacity_end [0] - The final opacity of the ripple.
46
+ /// @param {Number|String} $duration [$animate_base_duration] - The duration of the ripple animation.
47
+ /// @param {String} $timing_function [ease-out] - The timing function for the ripple animation.
48
+ ///
49
+ @mixin animate_ripple(
50
+ $scale_start: 1,
51
+ $scale_end: 1.5,
52
+ $opacity_start: 1,
53
+ $opacity_end: 0,
54
+ $duration: $animate_base_duration,
55
+ $timing_function: ease-out
56
+ ) {
57
+ @include animate_base(
58
+ animate_ripple,
59
+ $duration,
60
+ $timing_function,
61
+ infinite,
62
+ );
63
+ @keyframes animate_ripple {
64
+ 0% { transform: scale($scale_start); opacity: $opacity_start; }
65
+ 100% { transform: scale($scale_end); opacity: $opacity_end; }
66
+ }
67
+ }
68
+
69
+
70
+
71
+ // Slow Ripple Animation
72
+ // ----------------------------------------------------------------------------
73
+
74
+ ///
75
+ /// Slow Ripple Animation
76
+ /// Creates a slower ripple effect where the element scales up and fades out.
77
+ ///
78
+ /// @name animate_ripple_slow
79
+ /// @param {Number} $scale_end [1.5] - The final scale of the ripple.
80
+ /// @param {Number} $opacity_end [0] - The final opacity of the ripple.
81
+ /// @param {Number|String} $duration [2s] - The duration of the ripple animation.
82
+ /// @param {String} $timing_function [ease-out] - The timing function for the ripple animation.
83
+ ///
84
+ @mixin animate_ripple_slow(
85
+ $scale_end: 1.5,
86
+ $opacity_end: 0,
87
+ $duration: 2s,
88
+ $timing_function: ease-out
89
+ ) {
90
+ @include animate_base(
91
+ animate_ripple_slow,
92
+ $duration,
93
+ $timing_function,
94
+ infinite,
95
+ );
96
+ @keyframes animate_ripple_slow {
97
+ 0% { transform: scale(1); opacity: 1; }
98
+ 100% { transform: scale($scale_end); opacity: $opacity_end; }
99
+ }
100
+ }
101
+
102
+
103
+ // Multi-Ripple Animation
104
+ // ----------------------------------------------------------------------------
105
+
106
+ ///
107
+ /// Multi-Ripple Animation
108
+ /// Creates a ripple effect with multiple stages of scaling and fading.
109
+ /// @name animate_ripple_multi
110
+ /// @param {Number} $scale_first [1.2] - The scale of the ripple at the first stage.
111
+ /// @param {Number} $scale_second [1.5] - The scale of the ripple at the second stage.
112
+ /// @param {Number} $opacity_end [0] - The final opacity of the ripple.
113
+ /// @param {Number|String} $duration [$animate_base_duration] - The duration of the ripple animation.
114
+ /// @param {String} $timing_function [ease-out] - The timing function for the ripple animation.
115
+ ///
116
+ @mixin animate_ripple_multi(
117
+ $scale_first: 1.2,
118
+ $scale_second: 1.5,
119
+ $opacity_end: 0,
120
+ $duration: $animate_base_duration,
121
+ $timing_function: ease-out
122
+ ) {
123
+ @include animate_base(
124
+ animate_ripple_multi,
125
+ $duration,
126
+ $timing_function,
127
+ infinite,
128
+ );
129
+ @keyframes animate_ripple_multi {
130
+ 0%, 100% { transform: scale(1); opacity: 1; }
131
+ 50% { transform: scale($scale_first); opacity: 0.5; }
132
+ 100% { transform: scale($scale_second); opacity: $opacity_end; }
133
+ }
134
+ }
135
+
136
+
137
+ // Ripple with Color Change
138
+ // ----------------------------------------------------------------------------
139
+
140
+ ///
141
+ /// Ripple with Color Change
142
+ /// Creates a ripple effect where the element scales up, fades out, and changes color.
143
+ /// @name animate_ripple_color
144
+ /// @param {Number} $scale_end [1.5] - The final scale of the ripple.
145
+ /// @param {Number} $opacity_end [0] - The final opacity of the ripple.
146
+ /// @param {Color} $color_start [$animate_base_color_start] - The starting color of the ripple.
147
+ /// @param {Color} $color_end [$animate_base_color_end] - The ending color of the ripple.
148
+ /// @param {Number|String} $duration [$animate_base_duration] - The duration of the ripple animation.
149
+ /// @param {String} $timing_function [ease-out] - The timing function for the ripple animation.
150
+ ///
151
+ @mixin animate_ripple_color(
152
+ $scale_end: 1.5,
153
+ $opacity_end: 0,
154
+ $color_start: $animate_base_color_start,
155
+ $color_end: $animate_base_color_end,
156
+ $duration: $animate_base_duration,
157
+ $timing_function: ease-out
158
+ ) {
159
+ @include animate_base(
160
+ animate_ripple_color,
161
+ $duration,
162
+ $timing_function,
163
+ infinite,
164
+ );
165
+ @keyframes animate_ripple_color {
166
+ 0% { transform: scale(1); opacity: 1; background-color: $color_start; }
167
+ 100% { transform: scale($scale_end); opacity: $opacity_end; background-color: $color_end; }
168
+ }
169
+ }
@@ -0,0 +1,261 @@
1
+ // ============================================================================
2
+ // Poster
3
+ // ============================================================================
4
+
5
+ ////
6
+ ///
7
+ /// Roll Animations Mixin Module
8
+ /// ===========================================================================
9
+ ///
10
+ /// This module ...
11
+ ///
12
+ ///
13
+ /// @group Animations
14
+ /// @author Scape Agency
15
+ /// @link https://move.gl
16
+ /// @since 0.1.0 initial release
17
+ /// @todo None
18
+ /// @access public
19
+ ///
20
+ ////
21
+
22
+
23
+ // ============================================================================
24
+ // Use
25
+ // ============================================================================
26
+
27
+ @use "../dev" as *;
28
+ @use "../variables" as *;
29
+ @use "base" as *;
30
+
31
+
32
+ // ============================================================================
33
+ // Mixins
34
+ // ============================================================================
35
+
36
+
37
+ ///
38
+ /// Roll Animation
39
+ /// Creates a rolling animation where the element translates and rotates
40
+ /// horizontally.
41
+ ///
42
+ /// @name animate_roll
43
+ /// @param {Number|String} $translate-distance [100%] - The distance to translate the element horizontally.
44
+ /// @param {Number|String} $rotation_angle [360deg] - The rotation angle for the roll.
45
+ /// @param {Number|String} $duration [$animate_base_duration/// 2] - The duration of the roll animation.
46
+ /// @param {String} $timing_function [ease-in-out] - The timing function for the roll animation.
47
+ /// @param {Number|String} $iteration_count [$animate_base_iteration_count] - The number of iterations the animation will run.
48
+ ///
49
+ @mixin animate_roll(
50
+ $translate-distance: 100%,
51
+ $rotation_angle: 360deg,
52
+ $duration: $animate_base_duration * 2,
53
+ $timing_function: ease-in-out,
54
+ $iteration_count: $animate_base_iteration_count
55
+ ) {
56
+ @include animate_base(
57
+ animate_roll,
58
+ $duration,
59
+ $timing_function,
60
+ $iteration_count,
61
+ );
62
+ @keyframes animate_roll {
63
+ 0% { transform: translateX(0) rotate(0deg); }
64
+ 100% { transform: translateX($translate-distance) rotate($rotation_angle); }
65
+ }
66
+ }
67
+
68
+
69
+ // Reverse Roll Animation
70
+ // ----------------------------------------------------------------------------
71
+
72
+ ///
73
+ /// Reverse Roll Animation
74
+ /// Creates a reverse rolling animation where the element translates and rotates horizontally in the opposite direction.
75
+ /// @name animate_roll_reverse
76
+ /// @param {Number|String} $translate-distance [-100%] - The distance to translate the element horizontally.
77
+ /// @param {Number|String} $rotation_angle [-360deg] - The rotation angle for the reverse roll.
78
+ /// @param {Number|String} $duration [$animate_base_duration/// 2] - The duration of the roll animation.
79
+ /// @param {String} $timing_function [ease-in-out] - The timing function for the roll animation.
80
+ /// @param {Number|String} $iteration_count [$animate_base_iteration_count] - The number of iterations the animation will run.
81
+ ///
82
+ @mixin animate_roll_reverse(
83
+ $translate-distance: -100%,
84
+ $rotation_angle: -360deg,
85
+ $duration: $animate_base_duration * 2,
86
+ $timing_function: ease-in-out,
87
+ $iteration_count: $animate_base_iteration_count
88
+ ) {
89
+ @include animate_base(
90
+ animate_roll_reverse,
91
+ $duration,
92
+ $timing_function,
93
+ $iteration_count,
94
+ );
95
+ @keyframes animate_roll_reverse {
96
+ 0% { transform: translateX(0) rotate(0deg); }
97
+ 100% { transform: translateX($translate-distance) rotate($rotation_angle); }
98
+ }
99
+ }
100
+
101
+
102
+ // Slow Roll Animation
103
+ // ----------------------------------------------------------------------------
104
+
105
+ ///
106
+ /// Slow Roll Animation
107
+ /// Creates a slower rolling animation where the element translates and rotates horizontally.
108
+ /// @name animate_roll_slow
109
+ /// @param {Number|String} $translate-distance [100%] - The distance to translate the element horizontally.
110
+ /// @param {Number|String} $rotation_angle [360deg] - The rotation angle for the roll.
111
+ /// @param {Number|String} $duration [$animate_base_duration_slow/// 2] - The duration of the roll animation.
112
+ /// @param {String} $timing_function [ease-in-out] - The timing function for the roll animation.
113
+ /// @param {Number|String} $iteration_count [$animate_base_iteration_count] - The number of iterations the animation will run.
114
+ ///
115
+ @mixin animate_roll_slow(
116
+ $translate-distance: 100%,
117
+ $rotation_angle: 360deg,
118
+ $duration: $animate_base_duration_slow * 2,
119
+ $timing_function: ease-in-out,
120
+ $iteration_count: $animate_base_iteration_count
121
+ ) {
122
+ @include animate_base(
123
+ animate_roll_slow,
124
+ $duration,
125
+ $timing_function,
126
+ $iteration_count,
127
+ );
128
+ @keyframes animate_roll_slow {
129
+ 0% { transform: translateX(0) rotate(0deg); }
130
+ 100% { transform: translateX($translate-distance) rotate($rotation_angle); }
131
+ }
132
+ }
133
+
134
+
135
+
136
+ // Vertical Roll Animation
137
+ // ----------------------------------------------------------------------------
138
+
139
+ ///
140
+ /// Vertical Roll Animation
141
+ /// Creates a rolling animation where the element translates and rotates vertically.
142
+ /// @name animate_roll_vertical
143
+ /// @param {Number|String} $translate-distance [100%] - The distance to translate the element vertically.
144
+ /// @param {Number|String} $rotation_angle [360deg] - The rotation angle for the vertical roll.
145
+ /// @param {Number|String} $duration [$animate_base_duration/// 2] - The duration of the roll animation.
146
+ /// @param {String} $timing_function [ease-in-out] - The timing function for the roll animation.
147
+ /// @param {Number|String} $iteration_count [$animate_base_iteration_count] - The number of iterations the animation will run.
148
+ ///
149
+ @mixin animate_roll_vertical(
150
+ $translate-distance: 100%,
151
+ $rotation_angle: 360deg,
152
+ $duration: $animate_base_duration * 2,
153
+ $timing_function: ease-in-out,
154
+ $iteration_count: $animate_base_iteration_count
155
+ ) {
156
+ @include animate_base(
157
+ animate_roll_vertical,
158
+ $duration,
159
+ $timing_function,
160
+ $iteration_count,
161
+ );
162
+ @keyframes animate_roll_vertical {
163
+ 0% { transform: translateY(0) rotate(0deg); }
164
+ 100% { transform: translateY($translate-distance) rotate($rotation_angle); }
165
+ }
166
+ }
167
+
168
+
169
+
170
+
171
+
172
+ // originally authored by Nick Pettit - https://github.com/nickpettit/glide
173
+
174
+ // @-webkit-keyframes rollIn {
175
+ // from {
176
+ // opacity: 0;
177
+ // -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
178
+ // transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
179
+ // }
180
+
181
+ // 100% {
182
+ // opacity: 1;
183
+ // -webkit-transform: none;
184
+ // transform: none;
185
+ // }
186
+ // }
187
+
188
+ // @keyframes rollIn {
189
+ // from {
190
+ // opacity: 0;
191
+ // -webkit-transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
192
+ // transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
193
+ // }
194
+
195
+ // 100% {
196
+ // opacity: 1;
197
+ // -webkit-transform: none;
198
+ // transform: none;
199
+ // }
200
+ // }
201
+
202
+ // .rollIn {
203
+ // -webkit-animation-name: rollIn;
204
+ // animation-name: rollIn;
205
+ // }
206
+
207
+ // /* originally authored by Nick Pettit - https://github.com/nickpettit/glide///
208
+
209
+ // @-webkit-keyframes rollOut {
210
+ // from {
211
+ // opacity: 1;
212
+ // }
213
+
214
+ // 100% {
215
+ // opacity: 0;
216
+ // -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
217
+ // transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
218
+ // }
219
+ // }
220
+
221
+ // @keyframes rollOut {
222
+ // from {
223
+ // opacity: 1;
224
+ // }
225
+
226
+ // 100% {
227
+ // opacity: 0;
228
+ // -webkit-transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
229
+ // transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
230
+ // }
231
+ // }
232
+
233
+ // .rollOut {
234
+ // -webkit-animation-name: rollOut;
235
+ // animation-name: rollOut;
236
+ // }
237
+
238
+ // @-webkit-keyframes zoomIn {
239
+ // from {
240
+ // opacity: 0;
241
+ // -webkit-transform: scale3d(.3, .3, .3);
242
+ // transform: scale3d(.3, .3, .3);
243
+ // }
244
+
245
+ // 50% {
246
+ // opacity: 1;
247
+ // }
248
+ // }
249
+
250
+ // @keyframes zoomIn {
251
+ // from {
252
+ // opacity: 0;
253
+ // -webkit-transform: scale3d(.3, .3, .3);
254
+ // transform: scale3d(.3, .3, .3);
255
+ // }
256
+
257
+ // 50% {
258
+ // opacity: 1;
259
+ // }
260
+ // }
261
+