western-world 3.0.299 → 3.0.301

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "western-world",
3
- "version": "3.0.299",
3
+ "version": "3.0.301",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/defs/army.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { boom, boomAnimation } from './boom';
2
+
1
3
  export const army = `
2
4
  <style>
3
5
  .st18{fill:#555}
@@ -8,10 +10,13 @@ export const army = `
8
10
  .st23{opacity:0.3;}
9
11
  .st24{fill:#1D1D1B;}
10
12
  .st25{fill:none;stroke:#020202;stroke-width:20;stroke-miterlimit:10;}
13
+ .army-background {display: none;}
11
14
  #army-container {display: none;}
12
- #army-background-with-stroke {stroke-width:500;stroke:white;stroke-miterlimit:10;}
15
+ #army-background-with-stroke {stroke-width:500;stroke:white;stroke-miterlimit:10}
16
+ ${boomAnimation}
13
17
  </style>
14
18
  <symbol id="army" viewBox="0 0 8192 8192">
19
+ <rect class="army-background" x="-100" y="-100" width="8292" height="8292"></rect>
15
20
  <g id="army-container">
16
21
  <path id="army-background-with-stroke" class="st18" d="M5125,4945.6c0.4,2.2,0.7,4.3,1,6.5c0,0,140.9-153.5,142.8-256.7c0,0-2.3-3.2-6.6-8.7
17
22
  c1.1-8.7,2-17.6,2.5-26.7c9.5-162.1-7-205.3-138.8-283.9c0-0.1,0-0.2,0-0.2c43.2,25.9,97.3,61.6,112.4,86.4
@@ -30,24 +35,7 @@ export const army = `
30
35
  c-51.2-340.6-325.3-334-325.3-334c-25-80.7,32.3-111.7,32.3-111.7c374,42.1,391.4,388,391.4,388
31
36
  C4064.1,3351.1,3994.6,3345.8,3994.6,3345.8z M5064.7,4807.7c0,0-208-541.1-893.6-541.1c-586.6,0-782.1,354.7-782.1,354.7
32
37
  s141-442.3,768.5-451.4S5026.8,4589.5,5064.7,4807.7z"/>
33
- <path id="army-background" class="st18" d="M5125,4945.6c0.4,2.2,0.7,4.3,1,6.5c0,0,140.9-153.5,142.8-256.7c0,0-2.3-3.2-6.6-8.7
34
- c1.1-8.7,2-17.6,2.5-26.7c9.5-162.1-7-205.3-138.8-283.9c0-0.1,0-0.2,0-0.2c43.2,25.9,97.3,61.6,112.4,86.4
35
- c-0.6-3.1-84.2-403.3-468.5-653.4c-298.2-194-434.5-182.3-509.9-154.8c10.7-13.5,9.6-42.6-26.8-94.6
36
- c-74.5-106.3,156.3-693.4-273.5-931.8c-429.8-238.3-1058.7-39.4-1058.7-39.4l479,346.8c45.5-27.9,103-28.9,103-28.9l36.2,109.9
37
- c-145.7,6.1-259.7,152.6-259.7,152.6c-22.7-42.1-20.5-103.7-20.5-103.7c-34.1,48.9-90.9,171.7-169.1,399.5
38
- c-77.2,225.1-116.4,550.1-117.4,557.6c9.4-61.6,109.2-172.2,157-373.5l46.6,13.9c-83.6,217.7-88.1,446-88.1,446
39
- c81.6-0.1,163-21.8,238.9-54.1l1.4,4.9c0,0-5.5,35.2-6.3,81c-69,86.8-106.3,208.9-1.7,360.5c0,0-137.5,182.9-33.5,346.1h-259.9
40
- c-9.9-5.8-16.6-7.9-16.6-7.9h-95.7c-14.9-16.9-55.1-52.8-107.4-20.7c0,0-30.1-16.6-77.8-24.6l2.8-29.2l178.1-30.3
41
- c0,0,46.2,44,68.2-9.1c22-53.1-56.8-60.6-70.5-26.5l-146.3,0.8l25.8-94l-5.6-8.7l35.9-2180.9l-130.2-233.4l-129,236.5l16.6,2191.1
42
- l0.1,16.5l3.6-4l23.6,78.5l-150.8-0.8c0,0-27.1-44.2-61.4-2.3c-27.3,33.4,28.8,89.4,62.9,43.2l173.6,22.7l1.3,30.3
43
- c-26.3,4.6-54.3,13.1-83.1,27.3c-86.4,42.4-45.5,118.2-44,134.9c1.5,16.7-33.4,42.5-25.8,83.4c7.6,40.9,45.5,39.4,36.4,68.2
44
- c-9.1,28.8-9.1,89.4,28.8,128.8c33.8,35.2,51.9,46.2,108.1,48.2l4.6,109.5c-51.2,23.8-43.7,118.2,25.9,118.2
45
- c76.9,0,78.1-109.3,13.1-122.3l9.6-104.6c49,1.1,82.6,2.5,105.9-22.1h189.1c0,0,5.3-2.4,13.7-7.8l240.8,5.8
46
- c40.2,460.5,362.6,895.8,963.3,895.8c706.5,0,1030.6-652.8,923.7-1205.1C5120.4,4950.1,5122.7,4947.9,5125,4945.6z M3994.6,3345.8
47
- c-51.2-340.6-325.3-334-325.3-334c-25-80.7,32.3-111.7,32.3-111.7c374,42.1,391.4,388,391.4,388
48
- C4064.1,3351.1,3994.6,3345.8,3994.6,3345.8z M5064.7,4807.7c0,0-208-541.1-893.6-541.1c-586.6,0-782.1,354.7-782.1,354.7
49
- s141-442.3,768.5-451.4S5026.8,4589.5,5064.7,4807.7z"/>
50
- <g id="army-real">
38
+ <g id="army">
51
39
  <path d="M3067.6,3636l131.9,39.4l335,1182.3l-829.9-13.6l7.6-79.6l178.1-30.3c0,0,46.2,44,68.2-9.1c22-53.1-56.8-60.6-70.5-26.5
52
40
  l-146.3,0.8l25.8-94l-102.3-159.8l-110,164.4l27.4,91l-150.8-0.8c0,0-27.1-44.2-61.4-2.3c-27.3,33.3,28.8,89.4,62.9,43.2
53
41
  l173.6,22.7l28.4,681.7h31.8l21.6-236.1l2294.9-113.7c0,0,454.6-798.9-201.1-1229.5c-565.1-371.1-799.3-74.1-799.3-74.1
@@ -123,6 +111,7 @@ export const army = `
123
111
  </g>
124
112
  </g>
125
113
  </g>
114
+ ${boom}
126
115
  </symbol>
127
116
 
128
117
  `;
@@ -0,0 +1,12 @@
1
+ export const boom = `
2
+ <g class="boom" stroke-width="2" stroke-linecap="round">
3
+ <line x1="37" y1="37" y2="0" x2="37" fill="none" stroke-miterlimit="10" />
4
+ <line x1="37" y1="37" x2="63.16" y2="10.84" fill="none" stroke-miterlimit="10" />
5
+ <line x1="37" y1="37" x2="74" y2="37" fill="none" stroke-miterlimit="10" />
6
+ <line x1="37" y1="37" x2="63.16" y2="63.16" fill="none" stroke-miterlimit="10" />
7
+ <line x1="37" y1="37" x2="37" y2="74" fill="none" stroke-miterlimit="10" />
8
+ <line x1="37" y1="37" x2="10.84" y2="63.16" fill="none" stroke-miterlimit="10" />
9
+ <line x1="37" x2="0" y1="37" y2="37" fill="none" stroke-miterlimit="10" />
10
+ <line x1="37" y1="37" x2="10.84" y2="10.84" fill="none" stroke-miterlimit="10" />
11
+ </g>
12
+ `;
@@ -1,21 +1,37 @@
1
- @import './earthquake';
1
+ @import './boom';
2
+
3
+ $animation-army-background-delay: 3s;
4
+ $army-appearing-delay-after-background: 0.5s;
5
+ $army-appearing-duration: 3s;
2
6
 
3
7
  @mixin armyMixin {
4
8
  .animated.army {
5
9
  #main-container {
6
10
  animation-name: main_earthquake;
7
- animation-delay: 3.2s;
11
+ animation-delay: $animation-army-background-delay + $army-appearing-delay-after-background +
12
+ $army-appearing-duration / 20;
8
13
  animation-duration: 0.2s;
9
14
  animation-timing-function: linear;
10
15
  animation-iteration-count: 1;
11
16
  transform-origin: center center;
12
17
  }
13
18
 
19
+ .army-background {
20
+ display: block;
21
+ fill: black;
22
+ opacity: 0;
23
+ animation-name: army_bckground_animation;
24
+ animation-delay: $animation-army-background-delay;
25
+ animation-duration: $army-appearing-duration + 1.5s;
26
+ animation-timing-function: linear;
27
+ animation-iteration-count: 1;
28
+ }
29
+
14
30
  #army-container {
15
31
  display: block;
16
32
  animation-name: army_animation;
17
- animation-delay: 3s;
18
- animation-duration: 3s;
33
+ animation-delay: $animation-army-background-delay + $army-appearing-delay-after-background;
34
+ animation-duration: $army-appearing-duration;
19
35
  animation-timing-function: linear;
20
36
  animation-iteration-count: 1;
21
37
  animation-fill-mode: forwards;
@@ -24,58 +40,75 @@
24
40
  transform-origin: center center;
25
41
  }
26
42
 
27
- #army-real {
28
- animation-name: army_real_animation;
29
- animation-delay: 6s;
30
- animation-duration: 1s;
31
- animation-timing-function: linear;
32
- animation-iteration-count: 1;
33
- animation-fill-mode: forwards;
43
+ @include boomMixin;
44
+
45
+ .boom line {
46
+ translate: 25px 30px;
47
+ animation-delay: $animation-army-background-delay + $army-appearing-delay-after-background +
48
+ $army-appearing-duration;
34
49
  }
35
50
  }
36
51
 
37
- @keyframes army_animation {
52
+ @include boomAnimationMixin;
53
+
54
+ @keyframes main_earthquake {
55
+ 0% {
56
+ transform: scale(0.9);
57
+ }
58
+ 40% {
59
+ transform: scale(1.1);
60
+ }
61
+ 65% {
62
+ transform: scale(0.95);
63
+ }
64
+ 80% {
65
+ transform: scale(1.05);
66
+ }
67
+ 90% {
68
+ transform: scale(0.98);
69
+ }
70
+ 96% {
71
+ transform: scale(1.02);
72
+ }
73
+ 99% {
74
+ transform: scale(0.99);
75
+ }
76
+ 100% {
77
+ transform: scale(1);
78
+ }
79
+ }
80
+
81
+ @keyframes army_bckground_animation {
38
82
  0% {
39
- scale: 10;
40
83
  opacity: 0;
41
- translate: 0px 0px;
42
84
  }
43
85
  5% {
44
- scale: 1;
45
- opacity: 1;
46
- translate: 0px 0px;
86
+ opacity: 0.5;
47
87
  }
48
- 50% {
49
- scale: 1;
50
- opacity: 1;
51
- translate: 0px 0px;
52
- }
53
- 70% {
54
- scale: 0.3;
55
- opacity: 1;
56
- translate: -1500px -2700px;
88
+ 95% {
89
+ opacity: 0.5;
57
90
  }
58
91
  100% {
59
- scale: 0.3;
60
- opacity: 1;
61
- translate: -1500px -2700px;
92
+ opacity: 0;
62
93
  }
63
94
  }
64
95
 
65
- @keyframes army_real_animation {
96
+ @keyframes army_animation {
66
97
  0% {
98
+ scale: 10;
99
+ opacity: 0;
100
+ }
101
+ 5% {
102
+ scale: 1;
67
103
  opacity: 1;
68
- filter: brightness(1);
69
104
  }
70
- 50% {
105
+ 95% {
106
+ scale: 1;
71
107
  opacity: 1;
72
- filter: brightness(3);
73
108
  }
74
109
  100% {
110
+ scale: 1.1;
75
111
  opacity: 0;
76
- filter: brightness(3);
77
112
  }
78
113
  }
79
114
  }
80
-
81
- @include mainEarthquakeAnimationMixin;
@@ -0,0 +1,37 @@
1
+ @mixin boomMixin {
2
+ .boom {
3
+ scale: 60;
4
+
5
+ line {
6
+ stroke: white;
7
+ opacity: 0;
8
+ animation-name: linesAnimation;
9
+ animation-duration: 1s;
10
+ animation-timing-function: linear;
11
+ animation-iteration-count: infinity;
12
+ }
13
+ }
14
+ }
15
+
16
+ @mixin boomAnimationMixin {
17
+ @keyframes linesAnimation {
18
+ 0% {
19
+ opacity: 1;
20
+ stroke-dashoffset: -12;
21
+ stroke-dasharray: 1px 48px;
22
+ }
23
+ 40% {
24
+ opacity: 1;
25
+ stroke-dashoffset: -27;
26
+ stroke-dasharray: 7px 48px;
27
+ }
28
+ 99% {
29
+ opacity: 1;
30
+ stroke-dashoffset: -38;
31
+ stroke-dasharray: 0px 48px;
32
+ }
33
+ 100% {
34
+ opacity: 0;
35
+ }
36
+ }
37
+ }
@@ -17,6 +17,10 @@
17
17
  @include nth_child_variable(14);
18
18
  }
19
19
  }
20
+
21
+ #army-container {
22
+ translate: 400px 0px;
23
+ }
20
24
  }
21
25
  }
22
26
 
@@ -455,6 +455,6 @@
455
455
  "/>
456
456
  <path class="st17" d="M3029.2,4015.9c15,0,200.7,24,200.7,24l-139.4-100.7L3029.2,4015.9z"/>
457
457
  </g>
458
- <use xlink:href="#army"></use>
458
+ <use id="use-army" xlink:href="#army"></use>
459
459
  <g>
460
460
  </svg>