jos-animation 0.8.0

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 (55) hide show
  1. package/.github/FUNDING.yml +13 -0
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. package/.prettierignore +8 -0
  5. package/CODE_OF_CONDUCT.md +128 -0
  6. package/CONTRIBUTING.md +18 -0
  7. package/LEARN.md +3 -0
  8. package/LICENSE.md +21 -0
  9. package/README.md +453 -0
  10. package/SECURITY.md +19 -0
  11. package/dev/index.html +422 -0
  12. package/dev/jos.css +647 -0
  13. package/dev/jos.js +413 -0
  14. package/dev/scroll.js +18 -0
  15. package/dist/.htaccess +0 -0
  16. package/dist/jos.css +1 -0
  17. package/dist/jos.debug.js +414 -0
  18. package/dist/jos.js +309 -0
  19. package/dist/jos.min.js +1 -0
  20. package/dist/v0.3/jos.css +225 -0
  21. package/dist/v0.3/jos.js +161 -0
  22. package/dist/v0.5/jos.css +250 -0
  23. package/dist/v0.5/jos.js +473 -0
  24. package/dist/v0.6/jos.css +250 -0
  25. package/dist/v0.6/jos.debug.js +2 -0
  26. package/dist/v0.6/jos.debug.min.js +2 -0
  27. package/dist/v0.6/jos.js +212 -0
  28. package/dist/v0.6/jos.min.js +2 -0
  29. package/dist/v0.7/.htaccess +0 -0
  30. package/dist/v0.7/jos.css +2 -0
  31. package/dist/v0.7/jos.debug.js +459 -0
  32. package/dist/v0.7/jos.dev.js +623 -0
  33. package/dist/v0.7/jos.js +264 -0
  34. package/dist/v0.7/jos.min.js +2 -0
  35. package/dist/v0.8/jos.css +1 -0
  36. package/dist/v0.8/jos.debug.js +414 -0
  37. package/dist/v0.8/jos.js +309 -0
  38. package/dist/v0.8/jos.min.js +1 -0
  39. package/docs/index.html +419 -0
  40. package/docs/index2.html +678 -0
  41. package/docs/indexOld.html +291 -0
  42. package/docs/style.css +216 -0
  43. package/package.json +31 -0
  44. package/res/7ygwKRQc_2x.jpg +0 -0
  45. package/res/NewvWJ8Z_2x.jpg +0 -0
  46. package/res/asdsad.jpg +0 -0
  47. package/res/cPowTYfI_2x.jpg +0 -0
  48. package/res/favicon.ico +0 -0
  49. package/res/logo.jpg +0 -0
  50. package/res/logo_1_sq.png +0 -0
  51. package/res/logo_1png-removebg-preview.png +0 -0
  52. package/res/logo_1png.png +0 -0
  53. package/res/logo_2-removebg-preview.png +0 -0
  54. package/res/logo_2.png +0 -0
  55. package/res/logo_2_sq.png +0 -0
package/dev/jos.css ADDED
@@ -0,0 +1,647 @@
1
+ /*
2
+ JOS v0.8.4 By Jesvi Jonathan
3
+ */
4
+
5
+ /* jos default */
6
+ .jos {
7
+ opacity: 1;
8
+ display: block;
9
+ transition: transform, opacity 0.5s;
10
+ transition-timing-function: ease-in-out;
11
+ }
12
+ .jos-anchor {
13
+ opacity: 0;
14
+ transition: transform, opacity 0.5s;
15
+ transition-timing-function: ease-in-out;
16
+ }
17
+ .jos-static {
18
+ transform: translate(0, 0);
19
+ opacity: 1;
20
+ }
21
+
22
+ /* fade */
23
+ .jos-fade {
24
+ opacity: 0;
25
+ }
26
+ .jos-fade-right {
27
+ opacity: 0;
28
+ transform: translateX(-100px);
29
+ }
30
+ .jos-fade-left {
31
+ opacity: 0;
32
+ transform: translateX(100px);
33
+ }
34
+ .jos-fade-up {
35
+ opacity: 0;
36
+ transform: translateY(50px);
37
+ }
38
+ .jos-fade-down {
39
+ opacity: 0;
40
+ transform: translateY(-50px);
41
+ }
42
+ .jos-fade-right-up {
43
+ opacity: 0;
44
+ transform: translateX(-100px) translateY(50px);
45
+ }
46
+ .jos-fade-right-down {
47
+ opacity: 0;
48
+ transform: translateX(-100px) translateY(-50px);
49
+ }
50
+ .jos-fade-left-up {
51
+ opacity: 0;
52
+ transform: translateX(100px) translateY(50px);
53
+ }
54
+ .jos-fade-left-down {
55
+ opacity: 0;
56
+ transform: translateX(100px) translateY(-50px);
57
+ }
58
+
59
+ /* slide */
60
+
61
+ .jos-slide,
62
+ .jos-slide-right {
63
+ transform: translateX(-100px);
64
+ }
65
+ .jos-slide-left {
66
+ transform: translateX(100px);
67
+ }
68
+ .jos-slide-up {
69
+ transform: translateY(100px);
70
+ }
71
+ .jos-slide-down {
72
+ transform: translateY(-100px);
73
+ }
74
+ .jos-slide-right-up {
75
+ transform: translateX(-100px) translateY(100px);
76
+ }
77
+ .jos-slide-right-down {
78
+ transform: translateX(-100px) translateY(-100px);
79
+ }
80
+ .jos-slide-left-up {
81
+ transform: translateX(100px) translateY(100px);
82
+ }
83
+ .jos-slide-left-down {
84
+ transform: translateX(100px) translateY(-100px);
85
+ }
86
+
87
+ /* zoom out */
88
+ .jos-zoom,
89
+ .jos-zoom-out {
90
+ opacity: 0;
91
+ transform: scale(0.8);
92
+ }
93
+ .jos-zoom-out-right,
94
+ .jos-zoom-right {
95
+ opacity: 0;
96
+ transform: scale(0.8) translate3d(-100px, 0px, -100px);
97
+ }
98
+ .jos-zoom-out-left,
99
+ .jos-zoom-left {
100
+ opacity: 0;
101
+ transform: scale(0.8) translate3d(100px, 0px, -100px);
102
+ }
103
+ .jos-zoom-out-down,
104
+ .jos-zoom-down {
105
+ opacity: 0;
106
+ transform: scale(0.8) translate3d(0px, -100px, 0px);
107
+ }
108
+ .jos-zoom-out-up,
109
+ .jos-zoom-up {
110
+ opacity: 0;
111
+ transform: scale(0.8) translate3d(0px, 100px, 0px);
112
+ }
113
+
114
+ /* grow */
115
+ .jos-grow {
116
+ transform: scale(0);
117
+ }
118
+ .jos-grow-right {
119
+ transform: scale(0) translate3d(-100px, 0px, -100px);
120
+ }
121
+ .jos-grow-left {
122
+ transform: scale(0) translate3d(100px, 0px, -100px);
123
+ }
124
+ .jos-grow-down {
125
+ transform: scale(0) translate3d(0px, -100px, 0px);
126
+ }
127
+ .jos-grow-up {
128
+ transform: scale(0) translate3d(0px, 100px, 0px);
129
+ }
130
+
131
+ /* zoom in */
132
+ .jos-zoom-in {
133
+ opacity: 0;
134
+ transform: scale(1.1);
135
+ }
136
+ .jos-zoom-in-down {
137
+ opacity: 0;
138
+ transform: scale(1.1) translate3d(0px, -100px, 0px);
139
+ }
140
+ .jos-zoom-in-up {
141
+ opacity: 0;
142
+ transform: scale(1.1) translate3d(0px, 100px, 0px);
143
+ }
144
+ .jos-zoom-in-right {
145
+ opacity: 0;
146
+ transform: scale(1.1) translate3d(-100px, 0px, -100px);
147
+ }
148
+ .jos-zoom-in-left {
149
+ opacity: 0;
150
+ transform: scale(1.1) translate3d(100px, 0px, -100px);
151
+ }
152
+
153
+ /* shrink */
154
+ .jos-shrink {
155
+ transform: scale(1.4);
156
+ }
157
+ .jos-shrink-right {
158
+ transform: scale(1.4) translate3d(-100px, 0px, -100px);
159
+ }
160
+ .jos-shrink-left {
161
+ transform: scale(1.4) translate3d(100px, 0px, -100px);
162
+ }
163
+ .jos-shrink-down {
164
+ transform: scale(1.4) translate3d(0px, -100px, 0px);
165
+ }
166
+ .jos-shrink-up {
167
+ transform: scale(1.4) translate3d(0px, 100px, 0px);
168
+ }
169
+
170
+ /* flip */
171
+ .jos-flip,
172
+ .jos-flip-right {
173
+ transform: perspective(2500px) rotateY(-100deg);
174
+ opacity: 0;
175
+ }
176
+ .jos-flip-left {
177
+ transform: perspective(2500px) rotateY(100deg);
178
+ opacity: 0;
179
+ }
180
+ .jos-flip-up {
181
+ opacity: 0;
182
+ transform: perspective(2500px) rotateX(-100deg);
183
+ }
184
+ .jos-flip-down {
185
+ opacity: 0;
186
+ transform: perspective(2500px) rotateX(100deg);
187
+ }
188
+
189
+ /* rotate */
190
+ .jos-rotate,
191
+ .jos-rotate-right {
192
+ opacity: 0;
193
+ transform: rotate(-180deg);
194
+ }
195
+ .jos-rotate-left {
196
+ opacity: 0;
197
+ transform: rotate(180deg);
198
+ }
199
+
200
+ /* spin */
201
+ .jos-spin,
202
+ .jos-spin-right {
203
+ opacity: 0;
204
+ transform: rotate(-180deg) scale(0);
205
+ }
206
+ .jos-spin-left {
207
+ opacity: 0;
208
+ transform: rotate(180deg) scale(0);
209
+ }
210
+
211
+ /* revolve */
212
+ .jos-revolve,
213
+ .jos-revolve-right {
214
+ opacity: 0;
215
+ transform: rotate(-360deg) scale(0);
216
+ }
217
+ .jos-revolve-left {
218
+ opacity: 0;
219
+ transform: rotate(360deg) scale(0);
220
+ }
221
+
222
+ /* stretch */
223
+ .jos-stretch {
224
+ opacity: 0;
225
+ transform: scaleX(0);
226
+ }
227
+ .jos-stretch-vertical {
228
+ opacity: 0;
229
+ transform: scaleY(0);
230
+ }
231
+
232
+ /* pow attribute */
233
+ [data-jos_pow="0.1"] {
234
+ transform: rotateY(calc(0.1 * 360deg));
235
+ }
236
+ [data-jos_pow="0.2"] {
237
+ transform: rotateY(calc(0.2 * 360deg));
238
+ }
239
+ [data-jos_pow="0.3"] {
240
+ transform: rotateY(calc(0.3 * 360deg));
241
+ }
242
+ [data-jos_pow="0.4"] {
243
+ transform: rotateY(calc(0.4 * 360deg));
244
+ }
245
+ [data-jos_pow="0.5"] {
246
+ transform: rotateY(calc(0.5 * 360deg));
247
+ }
248
+ [data-jos_pow="0.6"] {
249
+ transform: rotateY(calc(0.6 * 360deg));
250
+ }
251
+ [data-jos_pow="0.7"] {
252
+ transform: rotateY(calc(0.7 * 360deg));
253
+ }
254
+ [data-jos_pow="0.8"] {
255
+ transform: rotateY(calc(0.8 * 360deg));
256
+ }
257
+ [data-jos_pow="0.9"] {
258
+ transform: rotateY(calc(0.9 * 360deg));
259
+ }
260
+ [data-jos_pow="1"] {
261
+ transform: rotateY(calc(1 * 360deg));
262
+ }
263
+
264
+ /* timing function attribute */
265
+ [data-jos_timing_function="ease"] {
266
+ transition-timing-function: ease !important;
267
+ }
268
+ [data-jos_timing_function="ease-in"] {
269
+ transition-timing-function: ease-in !important;
270
+ }
271
+ [data-jos_timing_function="ease-out"] {
272
+ transition-timing-function: ease-out !important;
273
+ }
274
+ [data-jos_timing_function="ease-in-out"] {
275
+ transition-timing-function: ease-in-out !important;
276
+ }
277
+ [data-jos_timing_function="linear"] {
278
+ transition-timing-function: linear !important;
279
+ }
280
+ [data-jos_timing_function="cubic-bezier"] {
281
+ transition-timing-function: cubic-bezier(0.1, 0.7, 1, 0.1) !important;
282
+ }
283
+ [data-jos_timing_function="step-start"] {
284
+ transition-timing-function: step-start !important;
285
+ }
286
+ [data-jos_timing_function="step-end"] {
287
+ transition-timing-function: step-end !important;
288
+ }
289
+ [data-jos_timing_function="steps"] {
290
+ transition-timing-function: steps(5, end) !important;
291
+ }
292
+ [data-jos_timing_function="frames"] {
293
+ transition-timing-function: frames(5) !important;
294
+ }
295
+ [data-jos_timing_function="initial"] {
296
+ transition-timing-function: initial !important;
297
+ }
298
+ [data-jos_timing_function="inherit"] {
299
+ transition-timing-function: inherit !important;
300
+ }
301
+ [data-jos_timing_function="unset"] {
302
+ transition-timing-function: unset !important;
303
+ }
304
+
305
+ /* duration attribute */
306
+ [data-jos_duration="0.1"] {
307
+ transition-duration: 0.1s !important;
308
+ }
309
+ [data-jos_duration="0.2"] {
310
+ transition-duration: 0.2s !important;
311
+ }
312
+ [data-jos_duration="0.3"] {
313
+ transition-duration: 0.3s !important;
314
+ }
315
+ [data-jos_duration="0.4"] {
316
+ transition-duration: 0.4s !important;
317
+ }
318
+ [data-jos_duration="0.5"] {
319
+ transition-duration: 0.5s !important;
320
+ }
321
+ [data-jos_duration="0.6"] {
322
+ transition-duration: 0.6s !important;
323
+ }
324
+ [data-jos_duration="0.7"] {
325
+ transition-duration: 0.7s !important;
326
+ }
327
+ [data-jos_duration="0.8"] {
328
+ transition-duration: 0.8s !important;
329
+ }
330
+ [data-jos_duration="0.9"] {
331
+ transition-duration: 0.9s !important;
332
+ }
333
+ [data-jos_duration="1"] {
334
+ transition-duration: 1s !important;
335
+ }
336
+ [data-jos_duration="2"] {
337
+ transition-duration: 2s !important;
338
+ }
339
+ [data-jos_duration="3"] {
340
+ transition-duration: 3s !important;
341
+ }
342
+ [data-jos_duration="4"] {
343
+ transition-duration: 4s !important;
344
+ }
345
+ [data-jos_duration="5"] {
346
+ transition: 5s !important;
347
+ }
348
+ [data-jos_duration="6"] {
349
+ transition-duration: 1s !important;
350
+ }
351
+ [data-jos_duration="7"] {
352
+ transition-duration: 2s !important;
353
+ }
354
+ [data-jos_duration="8"] {
355
+ transition-duration: 3s !important;
356
+ }
357
+ [data-jos_duration="9"] {
358
+ transition-duration: 4s !important;
359
+ }
360
+ [data-jos_duration="10"] {
361
+ transition: 5s !important;
362
+ }
363
+
364
+ /* Delay Attribute */
365
+ [data-jos_delay="0.1"] {
366
+ transition-delay: 0.1s !important;
367
+ }
368
+ [data-jos_delay="0.2"] {
369
+ transition-delay: 0.2s !important;
370
+ }
371
+ [data-jos_delay="0.3"] {
372
+ transition-delay: 0.3s !important;
373
+ }
374
+ [data-jos_delay="0.4"] {
375
+ transition-delay: 0.4s !important;
376
+ }
377
+ [data-jos_delay="0.5"] {
378
+ transition-delay: 0.5s !important;
379
+ }
380
+ [data-jos_delay="0.6"] {
381
+ transition-delay: 0.6s !important;
382
+ }
383
+ [data-jos_delay="0.7"] {
384
+ transition-delay: 0.7s !important;
385
+ }
386
+ [data-jos_delay="0.8"] {
387
+ transition-delay: 0.8s !important;
388
+ }
389
+ [data-jos_delay="0.9"] {
390
+ transition-delay: 0.9s !important;
391
+ }
392
+ [data-jos_delay="1"] {
393
+ transition-delay: 1s !important;
394
+ }
395
+ [data-jos_delay="2"] {
396
+ transition-delay: 2s !important;
397
+ }
398
+ [data-jos_delay="3"] {
399
+ transition-delay: 3s !important;
400
+ }
401
+ [data-jos_delay="4"] {
402
+ transition-delay: 4s !important;
403
+ }
404
+ [data-jos_delay="5"] {
405
+ transition-delay: 5s !important;
406
+ }
407
+
408
+ /* Playable animations */
409
+
410
+ .jos-slide-play,
411
+ .jos-slide-horizontal-play {
412
+ transition: 1s;
413
+ animation: jos-slide-play 0.7s ease-in-out infinite;
414
+ animation-direction: alternate-reverse;
415
+ }
416
+ @keyframes jos-slide-play {
417
+ 0% {
418
+ transform: translateX(-100px);
419
+ }
420
+
421
+ 100% {
422
+ transform: translateX(100px);
423
+ }
424
+ }
425
+
426
+ .jos-slide-vertical-play {
427
+ animation: jos-slide-vertical-play 0.7s ease-in-out infinite;
428
+ animation-direction: alternate-reverse;
429
+ }
430
+ @keyframes jos-slide-vertical-play {
431
+ 0% {
432
+ transform: translateY(-100px);
433
+ }
434
+
435
+ 100% {
436
+ transform: translateY(100px);
437
+ }
438
+ }
439
+
440
+ .jos-zoom-in-play,
441
+ .jos-pulse-play {
442
+ animation: jos-zoom-in-play 1s infinite;
443
+ animation-direction: alternate;
444
+ }
445
+
446
+ @keyframes jos-zoom-in-play {
447
+ 0% {
448
+ transform: scale(1);
449
+ opacity: 0;
450
+ }
451
+
452
+ 100% {
453
+ opacity: 1;
454
+ transform: scale(0.8);
455
+ }
456
+ }
457
+
458
+ .jos-zoom-play,
459
+ .jos-zoom-out-play,
460
+ .jos-pulse-out-play {
461
+ animation: jos-zoom-play 0.5s linear infinite;
462
+ animation-direction: alternate;
463
+ }
464
+
465
+ @keyframes jos-zoom-play {
466
+ 0% {
467
+ transform: scale(1);
468
+ opacity: 0;
469
+ }
470
+
471
+ 100% {
472
+ opacity: 1;
473
+ transform: scale(1.1);
474
+ }
475
+ }
476
+
477
+ .jos-flip-play {
478
+ animation: jos-flip-play 0.7s infinite;
479
+ animation-direction: alternate;
480
+ }
481
+ @keyframes jos-flip-play {
482
+ 0% {
483
+ transform: rotateY(0deg);
484
+ }
485
+
486
+ 100% {
487
+ transform: rotateY(180deg);
488
+ }
489
+ }
490
+
491
+ .jos-rotate-play {
492
+ animation: jos-rotate-play 1s linear forwards infinite;
493
+ border-radius: 0%;
494
+ animation-direction: alternate-reverse;
495
+ }
496
+
497
+ @keyframes jos-rotate-play {
498
+ 0% {
499
+ transform: rotate(0deg);
500
+ }
501
+
502
+ 100% {
503
+ transform: rotate(360deg);
504
+ }
505
+ }
506
+
507
+ .jos-spin-play {
508
+ animation: jos-spin-play 1.5s infinite;
509
+ animation-direction: alternate;
510
+ }
511
+ @keyframes jos-spin-play {
512
+ 0% {
513
+ transform: rotate(0deg);
514
+ opacity: 0;
515
+ }
516
+
517
+ 100% {
518
+ transform: rotate(360deg);
519
+ opacity: 1;
520
+ }
521
+ }
522
+
523
+ .jos-revolve-play {
524
+ animation: jos-revolve-play 1.5s infinite;
525
+ animation-direction: alternate;
526
+ }
527
+ @keyframes jos-revolve-play {
528
+ 0% {
529
+ transform: rotate(0deg);
530
+ }
531
+
532
+ 100% {
533
+ transform: rotate(360deg);
534
+ }
535
+ }
536
+
537
+ .jos-grow-play,
538
+ .jos-shrink-play {
539
+ animation: jos-grow-play 1s infinite;
540
+ animation-direction: alternate;
541
+ }
542
+ @keyframes jos-grow-play {
543
+ 0% {
544
+ transform: scale(0);
545
+ }
546
+
547
+ 100% {
548
+ transform: scale(1);
549
+ }
550
+ }
551
+
552
+ .jos-shrink-play {
553
+ animation-direction: alternate-reverse;
554
+ }
555
+
556
+ .jos-stretch-play {
557
+ animation: jos-stretch-play 0.7s infinite;
558
+ animation-direction: alternate;
559
+ }
560
+
561
+ @keyframes jos-stretch-play {
562
+ 0% {
563
+ transform: scaleX(1);
564
+ }
565
+
566
+ 100% {
567
+ transform: scaleX(0);
568
+ }
569
+ }
570
+
571
+ .jos-stretch-vertical-play {
572
+ animation: jos-stretch-vertical-play 0.7s infinite;
573
+ animation-direction: alternate-reverse;
574
+ }
575
+
576
+ @keyframes jos-stretch-vertical-play {
577
+ 0% {
578
+ transform: scaleY(1);
579
+ }
580
+
581
+ 100% {
582
+ transform: scaleY(0);
583
+ }
584
+ }
585
+
586
+ .jos-fade-play {
587
+ animation: jos-fade-play 0.8s infinite;
588
+ animation-direction: alternate;
589
+ }
590
+
591
+ @keyframes jos-fade-play {
592
+ 0% {
593
+ opacity: 0;
594
+ }
595
+
596
+ 100% {
597
+ opacity: 1;
598
+ }
599
+ }
600
+
601
+ .jos-fade-horizontal-play {
602
+ animation: jos-fade-horizontal-play 1s infinite;
603
+ animation-direction: alternate-reverse;
604
+ }
605
+
606
+ @keyframes jos-fade-horizontal-play {
607
+ 0% {
608
+ opacity: 0;
609
+ transform: translateX(100px);
610
+ }
611
+
612
+ 100% {
613
+ opacity: 1;
614
+ transform: translateX(-100px);
615
+ }
616
+ }
617
+
618
+ .jos-fade-vertical-play {
619
+ animation: jos-fade-vertical-play 1s infinite;
620
+ animation-direction: alternate-reverse;
621
+ }
622
+
623
+ @keyframes jos-fade-vertical-play {
624
+ 0% {
625
+ opacity: 0;
626
+ transform: translateY(100px);
627
+ }
628
+
629
+ 100% {
630
+ opacity: 1;
631
+ transform: translateY(-100px);
632
+ }
633
+ }
634
+
635
+ .jos-blink-play {
636
+ animation: jos-blink-play 1s steps(1, end) infinite;
637
+ }
638
+
639
+ @keyframes jos-blink-play {
640
+ 0% {
641
+ opacity: 1;
642
+ }
643
+
644
+ 50% {
645
+ opacity: 0;
646
+ }
647
+ }