@sharadox/sharadox-web-library 0.29.0 → 0.30.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.
- package/distribution/component/service-object/product-launch/index.d.ts +4 -4
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +33 -7
- package/distribution/component/service-object/product-launch/index.js.map +1 -1
- package/distribution/component/service-object/product-launch/index.module.css +1 -1
- package/distribution/component/service-object/product-launch/index.module.scss +185 -158
- package/llms.txt +1 -0
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Product launches: the countdown and the lift-off. Numbers count down from 3, each
|
|
3
|
-
* next
|
|
4
|
-
*
|
|
5
|
-
* stands on its pad.
|
|
2
|
+
* Product launches: the countdown and the lift-off, in 3D. Numbers count down from 3, each flowing smoothly into the
|
|
3
|
+
* next inside a ring that runs out, beside a round rocket (a body of panels, a nose cone, fins and a window) turning
|
|
4
|
+
* slowly on its pad. At zero its engine lights, smoke rolls out all around the pad and the rocket rises, faster and
|
|
5
|
+
* faster, out of sight, before the next one stands ready. With reduced motion, the rocket stands on its pad.
|
|
6
6
|
*/
|
|
7
7
|
export declare function ProductLaunch(): import("react").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,wBAAgB,aAAa,gCAmE5B"}
|
|
@@ -1,16 +1,42 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
2
3
|
import styles from "./index.module.css";
|
|
3
4
|
/** The countdown, one number a second, each flowing into the next. */
|
|
4
5
|
const COUNTDOWN = ["3", "2", "1"];
|
|
5
|
-
/**
|
|
6
|
-
const
|
|
6
|
+
/** The rocket's round body is made of this many flat panels around its axis, like a lathe. */
|
|
7
|
+
const SIDES = 8;
|
|
8
|
+
/** How far each panel stands from the axis, and its width, so the panels close into a ring. */
|
|
9
|
+
const APOTHEM = 13;
|
|
10
|
+
const PANEL = 2 * APOTHEM * Math.tan(Math.PI / SIDES);
|
|
11
|
+
/** The nose cone: its height, and the length and lean of each of its panels. */
|
|
12
|
+
const NOSE = 26;
|
|
13
|
+
const SLANT = Math.hypot(NOSE, APOTHEM);
|
|
14
|
+
const LEAN = (Math.atan(APOTHEM / NOSE) * 180) / Math.PI;
|
|
15
|
+
/** Fins around the base, evenly spaced. */
|
|
16
|
+
const FINS = 4;
|
|
17
|
+
/** Puffs of smoke spreading over the pad at lift-off, all the way round. */
|
|
18
|
+
const SMOKE = 8;
|
|
19
|
+
/** How lit a panel facing this way is (a light from the front left), as a share of the foreground color. */
|
|
20
|
+
const light = (angle) => `${Math.round(18 + 30 * (0.5 + 0.5 * Math.cos(((angle + 40) * Math.PI) / 180)))}%`;
|
|
21
|
+
const sides = Array.from({ length: SIDES }, (_, side) => (360 / SIDES) * side);
|
|
7
22
|
/**
|
|
8
|
-
* Product launches: the countdown and the lift-off. Numbers count down from 3, each
|
|
9
|
-
* next
|
|
10
|
-
*
|
|
11
|
-
* stands on its pad.
|
|
23
|
+
* Product launches: the countdown and the lift-off, in 3D. Numbers count down from 3, each flowing smoothly into the
|
|
24
|
+
* next inside a ring that runs out, beside a round rocket (a body of panels, a nose cone, fins and a window) turning
|
|
25
|
+
* slowly on its pad. At zero its engine lights, smoke rolls out all around the pad and the rocket rises, faster and
|
|
26
|
+
* faster, out of sight, before the next one stands ready. With reduced motion, the rocket stands on its pad.
|
|
12
27
|
*/
|
|
13
28
|
export function ProductLaunch() {
|
|
14
|
-
return (_jsxs("div", { className: styles.object, children: [
|
|
29
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx(Cuboid, { className: styles.pad }), _jsx("div", { className: styles.smoke, children: Array.from({ length: SMOKE }, (_, puff) => (_jsx("i", { style: { "--angle": `${(360 / SMOKE) * puff}deg` } }, puff))) }), _jsxs("div", { className: styles.rocket, children: [_jsxs("div", { className: styles.spin, children: [sides.map((angle) => (_jsx("span", { className: styles.panel, style: {
|
|
30
|
+
left: -PANEL / 2,
|
|
31
|
+
width: PANEL,
|
|
32
|
+
transform: `rotateY(${angle}deg) translateZ(${APOTHEM}px)`,
|
|
33
|
+
"--light": light(angle),
|
|
34
|
+
}, children: angle === 0 && _jsx("i", { className: styles.window }) }, angle))), sides.map((angle) => (_jsx("span", { className: styles.nose, style: {
|
|
35
|
+
left: -PANEL / 2,
|
|
36
|
+
width: PANEL,
|
|
37
|
+
height: SLANT,
|
|
38
|
+
transform: `rotateY(${angle}deg) translateZ(${APOTHEM}px) rotateX(${LEAN}deg)`,
|
|
39
|
+
"--light": light(angle),
|
|
40
|
+
} }, angle))), Array.from({ length: FINS }, (_, fin) => (_jsx("span", { className: styles.fin, style: { transform: `rotateY(${(360 / FINS) * fin + 45}deg) translateX(${APOTHEM + 8}px)` } }, fin))), _jsx("span", { className: styles.flame }), _jsx("span", { className: styles.flame, style: { transform: "rotateY(90deg)" } })] }), _jsx("span", { className: styles.trail })] }), _jsxs("div", { className: styles.countdown, children: [_jsxs("svg", { className: styles.ring, viewBox: "0 0 60 60", children: [_jsx("circle", { cx: "30", cy: "30", r: "27", pathLength: 100 }), _jsx("circle", { className: styles.time, cx: "30", cy: "30", r: "27", pathLength: 100 })] }), COUNTDOWN.map((number, index) => (_jsx("span", { className: styles.number, style: { animationDelay: `${index * 1.2}s` }, children: number }, number)))] })] }));
|
|
15
41
|
}
|
|
16
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,sEAAsE;AACtE,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,sEAAsE;AACtE,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAClC,8FAA8F;AAC9F,MAAM,KAAK,GAAG,CAAC,CAAC;AAChB,+FAA+F;AAC/F,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC;AACtD,gFAAgF;AAChF,MAAM,IAAI,GAAG,EAAE,CAAC;AAChB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACxC,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AACzD,2CAA2C;AAC3C,MAAM,IAAI,GAAG,CAAC,CAAC;AACf,4EAA4E;AAC5E,MAAM,KAAK,GAAG,CAAC,CAAC;AAEhB,4GAA4G;AAC5G,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EA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C,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,eAAmB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,YACtF,MAAM,IADE,MAAM,CAEV,CACR,CAAC,IACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:launch-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:launch-sway 12s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:scale(1.15) rotateX(-14deg) rotateY(-18deg)}@keyframes launch-sway{0%,100%{transform:scale(1.15) rotateX(-14deg) rotateY(-18deg)}50%{transform:scale(1.15) rotateX(-8deg) rotateY(14deg)}}.pad{--width: 96px;--height: 10px;--depth: 96px;--radius: 3px;--fill-amount: 8%;--edge-amount: 50%;transform:translateY(57px)}.rocket{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(52px);animation:launch-rocket 6s infinite}@media(prefers-reduced-motion: reduce){.rocket{animation:none}}@keyframes launch-rocket{0%,60%{transform:translateY(52px)}63%{transform:translateY(54px);animation-timing-function:cubic-bezier(0.55, 0, 0.9, 0.4)}84%{transform:translateY(-308px)}85%,92%{transform:translateY(52px) scale(0);animation-timing-function:cubic-bezier(0.22, 1, 0.36, 1)}100%{transform:translateY(52px) scale(1)}}.spin{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:launch-spin 9s linear infinite}@media(prefers-reduced-motion: reduce){.spin{animation:none}}@keyframes launch-spin{to{transform:rotateY(360deg)}}.panel{position:absolute;top:-54px;height:54px;background:color-mix(in srgb, var(--foreground) var(--light), var(--background));border-top:1px solid color-mix(in srgb, var(--foreground) 60%, transparent)}.window{position:absolute;left:50%;top:14px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:var(--background);border:1.5px solid var(--foreground)}.nose{position:absolute;bottom:54px;transform-origin:50% 100%;clip-path:polygon(50% 0, 100% 100%, 0 100%);background:color-mix(in srgb, var(--foreground) var(--light), var(--background))}.fin{position:absolute;left:-8px;top:-24px;width:16px;height:26px;clip-path:polygon(0 0, 100% 60%, 100% 100%, 0 100%);background:color-mix(in srgb, var(--foreground) 40%, var(--background))}.flame{position:absolute;left:-8px;top:0;width:16px;height:30px;clip-path:polygon(0 0, 100% 0, 50% 100%);background:linear-gradient(180deg, var(--foreground), color-mix(in srgb, var(--foreground) 20%, transparent));transform-origin:50% 0;scale:1 0;animation:launch-flame 6s linear infinite}@media(prefers-reduced-motion: reduce){.flame{animation:none}}@keyframes launch-flame{0%,58%{scale:1 0}61%{scale:1 1.2}62%{scale:1 .8}64%{scale:1 1.25}66%{scale:1 .8}68%{scale:1 1.25}70%{scale:1 .8}72%{scale:1 1.25}74%{scale:1 .8}76%{scale:1 1.25}78%{scale:1 .8}80%{scale:1 1.25}82%{scale:1 .8}84%,100%{scale:1 0}}.trail{position:absolute;left:-1.5px;top:26px;width:3px;height:80px;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 70%, transparent), transparent);transform-origin:top;transform:scaleY(0);animation:launch-trail 6s ease-in infinite}@media(prefers-reduced-motion: reduce){.trail{animation:none}}@keyframes launch-trail{0%,62%{transform:scaleY(0);opacity:1}80%{transform:scaleY(1);opacity:1}84%,100%{transform:scaleY(1);opacity:0}}.smoke{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(44px)}.smoke i{position:absolute;left:-14px;top:-14px;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 45%, transparent), transparent 70%);opacity:0;animation:launch-smoke 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.smoke i{animation:none}}@keyframes launch-smoke{0%,60%{opacity:0;transform:rotateY(var(--angle)) translateZ(0) rotateY(calc(-1 * var(--angle))) scale(0.4)}64%{opacity:1}86%,100%{opacity:0;transform:rotateY(var(--angle)) translateZ(64px) rotateY(calc(-1 * var(--angle))) scale(2)}}.countdown{position:absolute;left:-118px;top:-92px;width:64px;height:64px;transform:translateZ(30px);opacity:0;animation:launch-countdown 6s ease-out infinite}@media(prefers-reduced-motion: reduce){.countdown{animation:none}}@keyframes launch-countdown{0%,58%{opacity:1;transform:translateZ(30px) scale(1)}66%,100%{opacity:0;transform:translateZ(30px) scale(0.8)}}.ring{position:absolute;inset:0;overflow:visible;transform:rotate(-90deg)}.ring circle{fill:none;stroke:color-mix(in srgb, var(--foreground) 16%, transparent);stroke-width:2}.ring .time{stroke:var(--foreground);stroke-linecap:round;stroke-dasharray:100 100;animation:launch-time 6s linear infinite}@media(prefers-reduced-motion: reduce){.ring .time{animation:none}}@keyframes launch-time{0%{stroke-dashoffset:0}60%,100%{stroke-dashoffset:100}}.number{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display, inherit);font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--foreground);opacity:0;animation:launch-number 6s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.number{animation:none}}@keyframes launch-number{0%{opacity:0;transform:translateY(14px) scale(1.25);filter:blur(6px)}6%,16%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}23%,100%{opacity:0;transform:translateY(-14px) scale(0.85);filter:blur(6px)}}
|
|
@@ -6,28 +6,206 @@
|
|
|
6
6
|
* 84%), and the next rocket standing ready (from 90%). Every part runs on the same clock.
|
|
7
7
|
*/
|
|
8
8
|
$round: 6s;
|
|
9
|
+
/* The rocket's body: its height, and the top of the pad it stands on. */
|
|
10
|
+
$body: 54px;
|
|
11
|
+
$pad-top: 52px;
|
|
9
12
|
|
|
10
13
|
.object {
|
|
11
14
|
@include centered(0px, 0px);
|
|
12
15
|
@include loop(launch-sway 12s ease-in-out infinite);
|
|
13
|
-
transform: scale(1.
|
|
16
|
+
transform: scale(1.15) rotateX(-14deg) rotateY(-18deg);
|
|
14
17
|
}
|
|
15
18
|
@keyframes launch-sway {
|
|
16
19
|
0%,
|
|
17
20
|
100% {
|
|
18
|
-
transform: scale(1.
|
|
21
|
+
transform: scale(1.15) rotateX(-14deg) rotateY(-18deg);
|
|
19
22
|
}
|
|
20
23
|
50% {
|
|
21
|
-
transform: scale(1.
|
|
24
|
+
transform: scale(1.15) rotateX(-8deg) rotateY(14deg);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/* The launch pad: a low, wide block. */
|
|
28
|
+
.pad {
|
|
29
|
+
--width: 96px;
|
|
30
|
+
--height: 10px;
|
|
31
|
+
--depth: 96px;
|
|
32
|
+
--radius: 3px;
|
|
33
|
+
--fill-amount: 8%;
|
|
34
|
+
--edge-amount: 50%;
|
|
35
|
+
transform: translateY($pad-top + 5px);
|
|
36
|
+
}
|
|
37
|
+
/* The rocket stands on the pad, turning slowly on its axis; at zero it rises, faster and faster, out of sight. */
|
|
38
|
+
.rocket {
|
|
39
|
+
@include centered(0px, 0px);
|
|
40
|
+
transform: translateY($pad-top);
|
|
41
|
+
@include loop(launch-rocket $round infinite);
|
|
42
|
+
}
|
|
43
|
+
/* Shown and hidden by scale, not opacity, which would flatten the rocket. */
|
|
44
|
+
@keyframes launch-rocket {
|
|
45
|
+
0%,
|
|
46
|
+
60% {
|
|
47
|
+
transform: translateY($pad-top);
|
|
48
|
+
}
|
|
49
|
+
63% {
|
|
50
|
+
transform: translateY($pad-top + 2px);
|
|
51
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
|
|
52
|
+
}
|
|
53
|
+
84% {
|
|
54
|
+
transform: translateY($pad-top - 360px);
|
|
55
|
+
}
|
|
56
|
+
85%,
|
|
57
|
+
92% {
|
|
58
|
+
transform: translateY($pad-top) scale(0);
|
|
59
|
+
animation-timing-function: $ease;
|
|
60
|
+
}
|
|
61
|
+
100% {
|
|
62
|
+
transform: translateY($pad-top) scale(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.spin {
|
|
66
|
+
@include centered(0px, 0px);
|
|
67
|
+
@include loop(launch-spin 9s linear infinite);
|
|
68
|
+
}
|
|
69
|
+
@keyframes launch-spin {
|
|
70
|
+
to {
|
|
71
|
+
transform: rotateY(360deg);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/* A panel of the round body, lit by how it faces the light; the window sits on the front one. */
|
|
75
|
+
.panel {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: -$body;
|
|
78
|
+
height: $body;
|
|
79
|
+
background: color-mix(in srgb, var(--foreground) var(--light), var(--background));
|
|
80
|
+
border-top: 1px solid tint(60%);
|
|
81
|
+
}
|
|
82
|
+
.window {
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 50%;
|
|
85
|
+
top: 14px;
|
|
86
|
+
width: 9px;
|
|
87
|
+
height: 9px;
|
|
88
|
+
margin-left: -4.5px;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
background: var(--background);
|
|
91
|
+
border: 1.5px solid var(--foreground);
|
|
92
|
+
}
|
|
93
|
+
/* A panel of the nose cone, leaning in to the tip. */
|
|
94
|
+
.nose {
|
|
95
|
+
position: absolute;
|
|
96
|
+
bottom: $body;
|
|
97
|
+
transform-origin: 50% 100%;
|
|
98
|
+
clip-path: polygon(50% 0, 100% 100%, 0 100%);
|
|
99
|
+
background: color-mix(in srgb, var(--foreground) var(--light), var(--background));
|
|
100
|
+
}
|
|
101
|
+
/* A fin standing out from the base. */
|
|
102
|
+
.fin {
|
|
103
|
+
position: absolute;
|
|
104
|
+
left: -8px;
|
|
105
|
+
top: -24px;
|
|
106
|
+
width: 16px;
|
|
107
|
+
height: 26px;
|
|
108
|
+
clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
|
|
109
|
+
background: color-mix(in srgb, var(--foreground) 40%, var(--background));
|
|
110
|
+
}
|
|
111
|
+
/* The engine's flame: two crossed sheets of light under the rocket, lit at zero, flickering as it burns. */
|
|
112
|
+
.flame {
|
|
113
|
+
position: absolute;
|
|
114
|
+
left: -8px;
|
|
115
|
+
top: 0;
|
|
116
|
+
width: 16px;
|
|
117
|
+
height: 30px;
|
|
118
|
+
clip-path: polygon(0 0, 100% 0, 50% 100%);
|
|
119
|
+
background: linear-gradient(180deg, var(--foreground), tint(20%));
|
|
120
|
+
transform-origin: 50% 0;
|
|
121
|
+
scale: 1 0;
|
|
122
|
+
@include loop(launch-flame $round linear infinite);
|
|
123
|
+
}
|
|
124
|
+
@keyframes launch-flame {
|
|
125
|
+
0%,
|
|
126
|
+
58% {
|
|
127
|
+
scale: 1 0;
|
|
128
|
+
}
|
|
129
|
+
61% {
|
|
130
|
+
scale: 1 1.2;
|
|
131
|
+
}
|
|
132
|
+
@for $step from 0 through 10 {
|
|
133
|
+
#{62% + $step * 2%} {
|
|
134
|
+
scale: 1 if($step % 2 == 0, 0.8, 1.25);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
84%,
|
|
138
|
+
100% {
|
|
139
|
+
scale: 1 0;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/* The trail left behind, stretching as the rocket climbs and fading. */
|
|
143
|
+
.trail {
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: -1.5px;
|
|
146
|
+
top: 26px;
|
|
147
|
+
width: 3px;
|
|
148
|
+
height: 80px;
|
|
149
|
+
background: linear-gradient(180deg, tint(70%), transparent);
|
|
150
|
+
transform-origin: top;
|
|
151
|
+
transform: scaleY(0);
|
|
152
|
+
@include loop(launch-trail $round ease-in infinite);
|
|
153
|
+
}
|
|
154
|
+
@keyframes launch-trail {
|
|
155
|
+
0%,
|
|
156
|
+
62% {
|
|
157
|
+
transform: scaleY(0);
|
|
158
|
+
opacity: 1;
|
|
159
|
+
}
|
|
160
|
+
80% {
|
|
161
|
+
transform: scaleY(1);
|
|
162
|
+
opacity: 1;
|
|
163
|
+
}
|
|
164
|
+
84%,
|
|
165
|
+
100% {
|
|
166
|
+
transform: scaleY(1);
|
|
167
|
+
opacity: 0;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/* Smoke rolling out over the pad all the way round at lift-off. */
|
|
171
|
+
.smoke {
|
|
172
|
+
@include centered(0px, 0px);
|
|
173
|
+
transform: translateY($pad-top - 8px);
|
|
174
|
+
i {
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: -14px;
|
|
177
|
+
top: -14px;
|
|
178
|
+
width: 28px;
|
|
179
|
+
height: 28px;
|
|
180
|
+
border-radius: 50%;
|
|
181
|
+
background: radial-gradient(circle, tint(45%), transparent 70%);
|
|
182
|
+
opacity: 0;
|
|
183
|
+
@include loop(launch-smoke $round ease-out infinite);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
@keyframes launch-smoke {
|
|
187
|
+
0%,
|
|
188
|
+
60% {
|
|
189
|
+
opacity: 0;
|
|
190
|
+
transform: rotateY(var(--angle)) translateZ(0) rotateY(calc(-1 * var(--angle))) scale(0.4);
|
|
191
|
+
}
|
|
192
|
+
64% {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
}
|
|
195
|
+
86%,
|
|
196
|
+
100% {
|
|
197
|
+
opacity: 0;
|
|
198
|
+
transform: rotateY(var(--angle)) translateZ(64px) rotateY(calc(-1 * var(--angle))) scale(2);
|
|
22
199
|
}
|
|
23
200
|
}
|
|
24
201
|
/* The countdown, beside the rocket: a ring that runs out over the three seconds, the numbers inside it. */
|
|
25
202
|
.countdown {
|
|
26
203
|
position: absolute;
|
|
27
|
-
left: -
|
|
28
|
-
top: -
|
|
204
|
+
left: -118px;
|
|
205
|
+
top: -92px;
|
|
29
206
|
width: 64px;
|
|
30
207
|
height: 64px;
|
|
208
|
+
transform: translateZ(30px);
|
|
31
209
|
opacity: 0;
|
|
32
210
|
@include loop(launch-countdown $round ease-out infinite);
|
|
33
211
|
}
|
|
@@ -35,12 +213,12 @@ $round: 6s;
|
|
|
35
213
|
0%,
|
|
36
214
|
58% {
|
|
37
215
|
opacity: 1;
|
|
38
|
-
transform: scale(1);
|
|
216
|
+
transform: translateZ(30px) scale(1);
|
|
39
217
|
}
|
|
40
218
|
66%,
|
|
41
219
|
100% {
|
|
42
220
|
opacity: 0;
|
|
43
|
-
transform: scale(0.8);
|
|
221
|
+
transform: translateZ(30px) scale(0.8);
|
|
44
222
|
}
|
|
45
223
|
}
|
|
46
224
|
.ring {
|
|
@@ -102,154 +280,3 @@ $round: 6s;
|
|
|
102
280
|
filter: blur(6px);
|
|
103
281
|
}
|
|
104
282
|
}
|
|
105
|
-
/* The launch pad, and the smoke that spreads over it at lift-off. */
|
|
106
|
-
.pad {
|
|
107
|
-
position: absolute;
|
|
108
|
-
left: -50px;
|
|
109
|
-
top: 74px;
|
|
110
|
-
width: 100px;
|
|
111
|
-
height: 4px;
|
|
112
|
-
border-radius: 2px;
|
|
113
|
-
background: tint(30%);
|
|
114
|
-
i {
|
|
115
|
-
position: absolute;
|
|
116
|
-
left: 50%;
|
|
117
|
-
top: -14px;
|
|
118
|
-
width: 26px;
|
|
119
|
-
height: 26px;
|
|
120
|
-
margin-left: -13px;
|
|
121
|
-
border-radius: 50%;
|
|
122
|
-
background: radial-gradient(circle, tint(40%), transparent 70%);
|
|
123
|
-
opacity: 0;
|
|
124
|
-
@include loop(launch-smoke $round ease-out infinite);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
@keyframes launch-smoke {
|
|
128
|
-
0%,
|
|
129
|
-
60% {
|
|
130
|
-
opacity: 0;
|
|
131
|
-
transform: translateX(0) scale(0.4);
|
|
132
|
-
}
|
|
133
|
-
64% {
|
|
134
|
-
opacity: 1;
|
|
135
|
-
}
|
|
136
|
-
84%,
|
|
137
|
-
100% {
|
|
138
|
-
opacity: 0;
|
|
139
|
-
transform: translateX(calc(var(--side) * 70px)) translateY(-10px) scale(2.2);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
/* The rocket: standing on the pad, rising faster and faster at zero, then the next one appearing in its place. */
|
|
143
|
-
.rocket {
|
|
144
|
-
position: absolute;
|
|
145
|
-
left: -20px;
|
|
146
|
-
top: -18px;
|
|
147
|
-
width: 40px;
|
|
148
|
-
height: 92px;
|
|
149
|
-
@include loop(launch-rocket $round infinite);
|
|
150
|
-
svg {
|
|
151
|
-
position: absolute;
|
|
152
|
-
inset: 0;
|
|
153
|
-
overflow: visible;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
@keyframes launch-rocket {
|
|
157
|
-
0%,
|
|
158
|
-
60% {
|
|
159
|
-
opacity: 1;
|
|
160
|
-
transform: translateY(0);
|
|
161
|
-
}
|
|
162
|
-
63% {
|
|
163
|
-
transform: translateY(2px);
|
|
164
|
-
animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
|
|
165
|
-
}
|
|
166
|
-
84% {
|
|
167
|
-
opacity: 1;
|
|
168
|
-
transform: translateY(-340px);
|
|
169
|
-
}
|
|
170
|
-
85% {
|
|
171
|
-
opacity: 0;
|
|
172
|
-
transform: translateY(0) scale(0.6);
|
|
173
|
-
}
|
|
174
|
-
92% {
|
|
175
|
-
opacity: 0;
|
|
176
|
-
transform: translateY(0) scale(0.6);
|
|
177
|
-
animation-timing-function: $ease;
|
|
178
|
-
}
|
|
179
|
-
100% {
|
|
180
|
-
opacity: 1;
|
|
181
|
-
transform: translateY(0) scale(1);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
.body {
|
|
185
|
-
fill: var(--background);
|
|
186
|
-
stroke: var(--foreground);
|
|
187
|
-
stroke-width: 1.5;
|
|
188
|
-
}
|
|
189
|
-
.window {
|
|
190
|
-
fill: tint(30%);
|
|
191
|
-
stroke: var(--foreground);
|
|
192
|
-
stroke-width: 1.5;
|
|
193
|
-
}
|
|
194
|
-
.fin {
|
|
195
|
-
fill: tint(40%);
|
|
196
|
-
stroke: var(--foreground);
|
|
197
|
-
stroke-width: 1.2;
|
|
198
|
-
stroke-linejoin: round;
|
|
199
|
-
}
|
|
200
|
-
/* The engine's flame: lit at zero, flickering as it burns. */
|
|
201
|
-
.flame {
|
|
202
|
-
fill: var(--foreground);
|
|
203
|
-
filter: drop-shadow(0 0 6px tint(80%));
|
|
204
|
-
transform-box: fill-box;
|
|
205
|
-
transform-origin: 50% 0;
|
|
206
|
-
transform: scaleY(0);
|
|
207
|
-
@include loop(launch-flame $round linear infinite);
|
|
208
|
-
}
|
|
209
|
-
@keyframes launch-flame {
|
|
210
|
-
0%,
|
|
211
|
-
58% {
|
|
212
|
-
transform: scaleY(0);
|
|
213
|
-
}
|
|
214
|
-
61% {
|
|
215
|
-
transform: scaleY(1.2);
|
|
216
|
-
}
|
|
217
|
-
@for $step from 0 through 10 {
|
|
218
|
-
#{62% + $step * 2%} {
|
|
219
|
-
transform: scaleY(if($step % 2 == 0, 0.8, 1.25));
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
84%,
|
|
223
|
-
100% {
|
|
224
|
-
transform: scaleY(0);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
/* The trail left behind, stretching as the rocket climbs and fading. */
|
|
228
|
-
.trail {
|
|
229
|
-
position: absolute;
|
|
230
|
-
left: 50%;
|
|
231
|
-
top: 86px;
|
|
232
|
-
width: 3px;
|
|
233
|
-
height: 120px;
|
|
234
|
-
margin-left: -1.5px;
|
|
235
|
-
background: linear-gradient(180deg, tint(70%), transparent);
|
|
236
|
-
transform-origin: top;
|
|
237
|
-
transform: scaleY(0);
|
|
238
|
-
@include loop(launch-trail $round ease-in infinite);
|
|
239
|
-
}
|
|
240
|
-
@keyframes launch-trail {
|
|
241
|
-
0%,
|
|
242
|
-
62% {
|
|
243
|
-
transform: scaleY(0);
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}
|
|
246
|
-
80% {
|
|
247
|
-
transform: scaleY(1.6);
|
|
248
|
-
opacity: 1;
|
|
249
|
-
}
|
|
250
|
-
84%,
|
|
251
|
-
100% {
|
|
252
|
-
transform: scaleY(1.6);
|
|
253
|
-
opacity: 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
package/llms.txt
CHANGED
|
@@ -32,3 +32,4 @@
|
|
|
32
32
|
- 0.27.0: New objects: Platforms (a company's people around one system, joined to it by lines; messages travel from person to person through it, its gear turning and its tasks ticking off; text: your company's way of working, made digital), Product Launch (a countdown over a covered product, then the cover lifts, the product rises into the light and sparks fly), Brand Awareness (a billboard, then word of mouth spreads the brand's mark through a crowd until everyone thinks of it together). Shared Person and Mark pieces (component/service-object/person, /mark); Branding uses Mark. animation-web-library ^0.2.3 (the marquee glides sideways). The 0.26.0 note above said 16 cards: there are 15
|
|
33
33
|
- 0.28.0: Web adds Hosting before Professional Emails (we host what we build, look after it and bring it back up if anything goes wrong; object: a server rack watched by an uptime line, one server has an incident, goes dark, and comes back with a tick); Web is now three cards over two. Desktop & Mobile brings back Android Applications and iOS Applications after the PWA (three cards in a row; the PWA card is short like the others, without its points; lead "Apps for every screen."). New Product Launch object: a campaign timeline lighting step by step (teaser, landing page, campaign, launch day with the product revealed and confetti). ServiceCard has no `wide` or `points` any more. 18 cards in all
|
|
34
34
|
- 0.29.0: Hosting's object is only the server rack (no uptime line): one server goes dark and comes back with a tick. Android's object looks like Android (camera hole, round icons, search bar, three buttons, the quick settings shade sliding down and its toggles switching on); iOS's like an iPhone (Dynamic Island opening into a live activity, rounded-square icons that jiggle, page dots, dock, home bar). Product Launch is a 3-2-1 countdown, each number flowing smoothly into the next inside a ring that runs out, then a rocket lifts off with flame, smoke and a trail
|
|
35
|
+
- 0.30.0: Product Launch is in 3D: a round rocket (eight shaded panels, a nose cone of eight leaning panels, four fins, a window) turning slowly on a 3D pad, the flame as two crossed sheets, smoke rolling out all around the pad; the countdown floats in front. scroll-web-library ^0.4.2 (a glide never carries over to the next page)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@sharadox/metadata-web-library": "^0.2.0",
|
|
66
66
|
"@sharadox/pointer-web-library": "^0.1.0",
|
|
67
67
|
"@sharadox/privacy-web-library": "^0.1.1",
|
|
68
|
-
"@sharadox/scroll-web-library": "^0.4.
|
|
68
|
+
"@sharadox/scroll-web-library": "^0.4.2",
|
|
69
69
|
"@sharadox/style-web-library": "^0.2.0",
|
|
70
70
|
"@sharadox/time-web-library": "^0.2.0",
|
|
71
71
|
"@sharadox/web-library": "^0.7.0",
|