aliascss 1.3.4 → 1.3.5

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.
@@ -0,0 +1,90 @@
1
+ export declare const animation: {
2
+ 'x-animation-fade-in': {
3
+ type: string;
4
+ statement: string;
5
+ };
6
+ 'x-animation-fade-out': {
7
+ type: string;
8
+ statement: string;
9
+ };
10
+ 'x-animation-slide-up': {
11
+ type: string;
12
+ statement: string;
13
+ };
14
+ 'x-animation-slide-left': {
15
+ type: string;
16
+ statement: string;
17
+ };
18
+ 'x-animation-zoom-in': {
19
+ type: string;
20
+ statement: string;
21
+ };
22
+ 'x-animation-rotate-in': {
23
+ type: string;
24
+ statement: string;
25
+ };
26
+ 'x-animation-bounce': {
27
+ type: string;
28
+ statement: string;
29
+ };
30
+ 'x-animation-shake': {
31
+ type: string;
32
+ statement: string;
33
+ };
34
+ 'x-animation-float': {
35
+ type: string;
36
+ statement: string;
37
+ };
38
+ 'x-animation-flip-y': {
39
+ type: string;
40
+ statement: string;
41
+ };
42
+ 'x-animation-reveal': {
43
+ type: string;
44
+ statement: string;
45
+ };
46
+ 'x-animation-shadow-rise': {
47
+ type: string;
48
+ statement: string;
49
+ };
50
+ 'x-animation-slide-down': {
51
+ type: string;
52
+ statement: string;
53
+ };
54
+ 'x-animation-slide-right': {
55
+ type: string;
56
+ statement: string;
57
+ };
58
+ 'x-animation-zoom-out': {
59
+ type: string;
60
+ statement: string;
61
+ };
62
+ 'x-animation-spin': {
63
+ type: string;
64
+ statement: string;
65
+ };
66
+ 'x-animation-pulse': {
67
+ type: string;
68
+ statement: string;
69
+ };
70
+ 'x-animation-swing': {
71
+ type: string;
72
+ statement: string;
73
+ };
74
+ 'x-animation-flip-x': {
75
+ type: string;
76
+ statement: string;
77
+ };
78
+ 'x-animation-blur-in': {
79
+ type: string;
80
+ statement: string;
81
+ };
82
+ 'x-animation-glow': {
83
+ type: string;
84
+ statement: string;
85
+ };
86
+ 'x-animation-wipe-x': {
87
+ type: string;
88
+ statement: string;
89
+ };
90
+ };
@@ -0,0 +1,442 @@
1
+ export const animation = {
2
+ 'x-animation-fade-in': {
3
+ type: 'raw',
4
+ statement: `.x-animation-fade-in {
5
+ animation: fade-in var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
6
+ }
7
+
8
+ @keyframes fade-in {
9
+ from {
10
+ opacity: var(--fade-from, 0)
11
+ }
12
+
13
+ to {
14
+ opacity: var(--fade-to, 1)
15
+ }
16
+ }`,
17
+ },
18
+ 'x-animation-fade-out': {
19
+ type: 'raw',
20
+ statement: `
21
+ .x-animation-fade-out {
22
+ animation: fade-out var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
23
+ }
24
+
25
+ @keyframes fade-out {
26
+ from {
27
+ opacity: var(--fade-to, 1)
28
+ }
29
+
30
+ to {
31
+ opacity: var(--fade-from, 0)
32
+ }
33
+ }`,
34
+ },
35
+ 'x-animation-slide-up': {
36
+ type: 'raw',
37
+ statement: `.x-animation-slide-up {
38
+ animation: slide-up var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
39
+ }
40
+
41
+ @keyframes slide-up {
42
+ from {
43
+ opacity: var(--fade-from, 0);
44
+ transform: translateY(var(--slide-y, 18px)) scale(var(--scale-from, .92))
45
+ }
46
+
47
+ to {
48
+ opacity: var(--fade-to, 1);
49
+ transform: translateY(0) scale(var(--scale-to, 1))
50
+ }
51
+ }
52
+ `
53
+ },
54
+ 'x-animation-slide-left': {
55
+ type: 'raw',
56
+ statement: `.x-animation-slide-left {
57
+ animation: slide-left var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
58
+ }
59
+
60
+ @keyframes slide-left {
61
+ from {
62
+ opacity: var(--fade-from, 0);
63
+ transform: translateX(var(--slide-x, 24px)) scale(var(--scale-from, .92))
64
+ }
65
+
66
+ to {
67
+ opacity: var(--fade-to, 1);
68
+ transform: translateX(0) scale(var(--scale-to, 1))
69
+ }
70
+ }
71
+ `
72
+ },
73
+ 'x-animation-zoom-in': {
74
+ type: 'raw',
75
+ statement: `.x-animation-zoom-in {
76
+ animation: zoom-in var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
77
+ }
78
+
79
+ @keyframes zoom-in {
80
+ from {
81
+ opacity: var(--fade-from, 0);
82
+ transform: scale(var(--scale-from, .92))
83
+ }
84
+
85
+ to {
86
+ opacity: var(--fade-to, 1);
87
+ transform: scale(var(--scale-to, 1))
88
+ }
89
+ }
90
+ `
91
+ },
92
+ 'x-animation-rotate-in': {
93
+ type: 'raw',
94
+ statement: `.x-animation-rotate-in {
95
+ animation: rotate-in var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
96
+ }
97
+
98
+ @keyframes rotate-in {
99
+ from {
100
+ opacity: var(--fade-from, 0);
101
+ transform: rotate(var(--rotate-from, -8deg)) scale(var(--scale-from, .92))
102
+ }
103
+
104
+ to {
105
+ opacity: var(--fade-to, 1);
106
+ transform: rotate(var(--rotate-to, 0deg)) scale(var(--scale-to, 1))
107
+ }
108
+ }
109
+ `
110
+ },
111
+ 'x-animation-bounce': {
112
+ type: 'raw',
113
+ statement: `.x-animation-bounce {
114
+ animation: bounce calc(var(--x-animation-duration, 1.2s) * 1.15) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
115
+ }
116
+
117
+ @keyframes bounce {
118
+
119
+ 0%,
120
+ 100% {
121
+ transform: translateY(0)
122
+ }
123
+
124
+ 30% {
125
+ transform: translateY(var(--bounce-y, -18px))
126
+ }
127
+
128
+ 55% {
129
+ transform: translateY(0)
130
+ }
131
+
132
+ 70% {
133
+ transform: translateY(calc(var(--bounce-y, -18px) * .45))
134
+ }
135
+ }
136
+ `
137
+ },
138
+ 'x-animation-shake': {
139
+ type: 'raw',
140
+ statement: `.x-animation-shake {
141
+ animation: shake calc(var(--x-animation-duration, 1.2s) * .9) ease-in-out var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
142
+ }
143
+
144
+ @keyframes shake {
145
+
146
+ 0%,
147
+ 100% {
148
+ transform: translateX(0)
149
+ }
150
+
151
+ 20% {
152
+ transform: translateX(calc(var(--shake-x, 10px) * -1))
153
+ }
154
+
155
+ 40% {
156
+ transform: translateX(var(--shake-x, 10px))
157
+ }
158
+
159
+ 60% {
160
+ transform: translateX(calc(var(--shake-x, 10px) * -.65))
161
+ }
162
+
163
+ 80% {
164
+ transform: translateX(calc(var(--shake-x, 10px) * .65))
165
+ }
166
+ }
167
+ `
168
+ },
169
+ 'x-animation-float': {
170
+ type: 'raw',
171
+ statement: `.x-animation-float {
172
+ animation: float calc(var(--x-animation-duration, 1.2s) * 1.3) ease-in-out var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) alternate var(--x-animation-fill, both);
173
+ }
174
+
175
+ @keyframes float {
176
+ from {
177
+ transform: translateY(0)
178
+ }
179
+
180
+ to {
181
+ transform: translateY(var(--float-y, -10px))
182
+ }
183
+ }
184
+ `
185
+ },
186
+ 'x-animation-flip-y': {
187
+ type: 'raw',
188
+ statement: `.x-animation-flip-y {
189
+ animation: flip-y calc(var(--x-animation-duration, 1.2s) * 1.1) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
190
+ }
191
+
192
+ @keyframes flip-y {
193
+ from {
194
+ transform: perspective(500px) rotateY(0)
195
+ }
196
+
197
+ to {
198
+ transform: perspective(500px) rotateY(var(--flip-angle, 180deg))
199
+ }
200
+ }
201
+ `
202
+ },
203
+ 'x-animation-reveal': {
204
+ type: 'raw',
205
+ statement: `.x-animation-reveal {
206
+ animation: reveal var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
207
+ }
208
+
209
+
210
+ @keyframes reveal {
211
+ from {
212
+ clip-path: var(--clip-from, inset(0 50% 0 50% round 12px), inset(0 50% 0 50% round 12px));
213
+ opacity: .45
214
+ }
215
+
216
+ to {
217
+ clip-path: var(--clip-to, inset(0 0 0 0 round 12px));
218
+ opacity: 1
219
+ }
220
+ }
221
+ `
222
+ },
223
+ 'x-animation-shadow-rise': {
224
+ type: 'raw',
225
+ statement: `.x-animation-shadow-rise {
226
+ animation: shadow-rise calc(var(--x-animation-duration, 1.2s) * 1.1) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) alternate var(--x-animation-fill, both);
227
+ }
228
+
229
+ @keyframes shadow-rise {
230
+ from {
231
+ transform: translateY(0);
232
+ box-shadow: var(--shadow-rise-from, 0 18px 30px rgba(15, 23, 42, .10))
233
+ }
234
+
235
+ to {
236
+ transform: translateY(-6px);
237
+ box-shadow: var(--shadow-rise-to, 0 28px 44px rgba(15, 23, 42, .22))
238
+ }
239
+ }
240
+ `
241
+ },
242
+ 'x-animation-slide-down': {
243
+ type: 'raw',
244
+ statement: `.x-animation-slide-down {
245
+ animation: slide-down var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
246
+ }
247
+
248
+ @keyframes slide-down {
249
+ from {
250
+ opacity: var(--fade-from, 0);
251
+ transform: translateY(calc(var(--slide-y, 18px) * -1)) scale(var(--scale-from, .92))
252
+ }
253
+
254
+ to {
255
+ opacity: var(--fade-to, 1);
256
+ transform: translateY(0) scale(var(--scale-to, 1))
257
+ }
258
+ }
259
+ `
260
+ },
261
+ 'x-animation-slide-right': {
262
+ type: 'raw',
263
+ statement: `.x-animation-slide-right {
264
+ animation: slide-right var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
265
+ }
266
+
267
+ @keyframes slide-right {
268
+ from {
269
+ opacity: var(--fade-from, 0);
270
+ transform: translateX(calc(var(--slide-x, 24px) * -1)) scale(var(--scale-from, .92))
271
+ }
272
+
273
+ to {
274
+ opacity: var(--fade-to, 1);
275
+ transform: translateX(0) scale(var(--scale-to, 1))
276
+ }
277
+ }
278
+ `
279
+ },
280
+ 'x-animation-zoom-out': {
281
+ type: 'raw',
282
+ statement: `.x-animation-zoom-out {
283
+ animation: zoom-out var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
284
+ }
285
+
286
+ @keyframes zoom-out {
287
+ from {
288
+ opacity: var(--fade-to, 1);
289
+ transform: scale(var(--scale-up, 1.08))
290
+ }
291
+
292
+ to {
293
+ opacity: var(--fade-from, 0);
294
+ transform: scale(var(--scale-to, 1))
295
+ }
296
+ }
297
+ `
298
+ },
299
+ 'x-animation-spin': {
300
+ type: 'raw',
301
+ statement: `.x-animation-spin {
302
+ animation: spin var(--x-animation-duration, 1.2s) linear var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
303
+ }
304
+
305
+ @keyframes spin {
306
+ from {
307
+ transform: rotate(0turn)
308
+ }
309
+
310
+ to {
311
+ transform: rotate(var(--spin-turn, 1turn))
312
+ }
313
+ }
314
+ `
315
+ },
316
+ 'x-animation-pulse': {
317
+ type: 'raw',
318
+ statement: `.x-animation-pulse {
319
+ animation: pulse var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
320
+ }
321
+
322
+ @keyframes pulse {
323
+
324
+ 0%,
325
+ 100% {
326
+ transform: scale(1);
327
+ opacity: 1
328
+ }
329
+
330
+ 50% {
331
+ transform: scale(var(--pulse-scale));
332
+ opacity: .88
333
+ }
334
+ }
335
+ `
336
+ },
337
+ 'x-animation-swing': {
338
+ type: 'raw',
339
+ statement: `.x-animation-swing {
340
+ animation: swing calc(var(--x-animation-duration, 1.2s) * 1.1) ease-in-out var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
341
+ transform-origin: top center;
342
+ }
343
+
344
+ @keyframes swing {
345
+ 0% {
346
+ transform: rotate(0)
347
+ }
348
+
349
+ 20% {
350
+ transform: rotate(var(--swing-angle, 12deg))
351
+ }
352
+
353
+ 40% {
354
+ transform: rotate(calc(var(--swing-angle, 12deg) * -.7))
355
+ }
356
+
357
+ 60% {
358
+ transform: rotate(calc(var(--swing-angle, 12deg) * .45))
359
+ }
360
+
361
+ 80% {
362
+ transform: rotate(calc(var(--swing-angle, 12deg) * -.2))
363
+ }
364
+
365
+ 100% {
366
+ transform: rotate(0)
367
+ }
368
+ }
369
+ `
370
+ },
371
+ 'x-animation-flip-x': {
372
+ type: 'raw',
373
+ statement: `.x-animation-flip-x {
374
+ animation: flip-x calc(var(--x-animation-duration, 1.2s) * 1.1) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
375
+ }
376
+
377
+ @keyframes flip-x {
378
+ from {
379
+ transform: perspective(500px) rotateX(0)
380
+ }
381
+
382
+ to {
383
+ transform: perspective(500px) rotateX(var(--flip-angle, 180deg))
384
+ }
385
+ }
386
+ `
387
+ },
388
+ 'x-animation-blur-in': {
389
+ type: 'raw',
390
+ statement: `.x-animation-blur-in {
391
+ animation: blur-in var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
392
+ }
393
+
394
+ @keyframes blur-in {
395
+ from {
396
+ opacity: var(--fade-from, 0);
397
+ filter: blur(var(--blur-from, 8px));
398
+ transform: scale(.98)
399
+ }
400
+
401
+ to {
402
+ opacity: var(--fade-to, 1);
403
+ filter: blur(0);
404
+ transform: scale(1)
405
+ }
406
+ }
407
+ `
408
+ },
409
+ 'x-animation-glow': {
410
+ type: 'raw',
411
+ statement: `.x-animation-glow {
412
+ animation: glow calc(var(--x-animation-duration, 1.2s) * 1.2) ease-in-out var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) alternate var(--x-animation-fill, both);
413
+ }
414
+
415
+ @keyframes glow {
416
+ from {
417
+ box-shadow: var(--glow-a, 0 0 0 rgba(99, 102, 241, 0))
418
+ }
419
+
420
+ to {
421
+ box-shadow: var(--glow-b, 0 0 24px rgba(99, 102, 241, .45))
422
+ }
423
+ }
424
+ `
425
+ },
426
+ 'x-animation-wipe-x': {
427
+ type: 'raw',
428
+ statement: `.x-animation-wipe-x::before {
429
+ animation: wipe-x var(--x-animation-duration, 1.2s) var(--x-animation-timing-function, cubic-bezier(.2, .8, .2, 1)) var(--x-animation-delay, 0s) var(--x-animation-iteration-count, 1) var(---x-animation-direction, normal) var(--x-animation-fill, both);
430
+ }
431
+
432
+ @keyframes wipe-x {
433
+ from {
434
+ transform: translateX(var(--wipe-x-from, -100%))
435
+ }
436
+
437
+ to {
438
+ transform: translateX(var(--wipe-x-to, -0%))
439
+ }
440
+ }`
441
+ }
442
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aliascss",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "AliasCSS is a CSS post processor.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",