@ssgoi/core 2.5.3 → 2.5.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.
- package/dist/animator/ticker.d.ts +1 -0
- package/dist/animator/ticker.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +147 -142
- package/dist/jaemin-BG8HRXG1.cjs +1 -0
- package/dist/{jaemin-BAi8PTrj.js → jaemin-BWkrXq0V.js} +21 -20
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.js +2 -2
- package/dist/transition/create-transition-callback.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/number.d.ts +46 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/view-transitions/drill.d.ts.map +1 -1
- package/dist/view-transitions/fade.d.ts.map +1 -1
- package/dist/view-transitions/hero.d.ts.map +1 -1
- package/dist/view-transitions/index.cjs +15 -15
- package/dist/view-transitions/index.js +478 -443
- package/dist/view-transitions/scroll.d.ts.map +1 -1
- package/dist/view-transitions/slide.d.ts.map +1 -1
- package/dist/view-transitions/strip.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/jaemin-DL1-g_B5.cjs +0 -1
- package/dist/utils.d.ts +0 -17
- package/dist/utils.d.ts.map +0 -1
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { a as
|
|
3
|
-
const
|
|
1
|
+
import { p as b, g as L } from "../jaemin-BWkrXq0V.js";
|
|
2
|
+
import { a as Vt } from "../jaemin-BWkrXq0V.js";
|
|
3
|
+
const U = (t) => new Promise((n) => setTimeout(n, t));
|
|
4
|
+
function q(t, n = 0) {
|
|
5
|
+
const i = Math.pow(10, n);
|
|
6
|
+
return Math.round(t * i) / i;
|
|
7
|
+
}
|
|
8
|
+
const G = { stiffness: 80, damping: 25 }, j = { stiffness: 75, damping: 25 }, K = 300, Z = 10, J = "horizontal", Q = "#000000", vt = (t = {}) => {
|
|
4
9
|
const {
|
|
5
|
-
inSpring:
|
|
6
|
-
outSpring:
|
|
7
|
-
transitionDelay: d =
|
|
8
|
-
blindCount: r =
|
|
9
|
-
direction:
|
|
10
|
-
staggerDelay:
|
|
11
|
-
blindColor:
|
|
10
|
+
inSpring: n = j,
|
|
11
|
+
outSpring: i = G,
|
|
12
|
+
transitionDelay: d = K,
|
|
13
|
+
blindCount: r = Z,
|
|
14
|
+
direction: s = J,
|
|
15
|
+
staggerDelay: c = 100,
|
|
16
|
+
blindColor: e = Q
|
|
12
17
|
} = t;
|
|
13
|
-
let a,
|
|
14
|
-
const
|
|
18
|
+
let a, l = null;
|
|
19
|
+
const o = (p, g, u = "left") => {
|
|
15
20
|
window.getComputedStyle(p).position === "static" && (p.style.position = "relative");
|
|
16
21
|
const h = document.createElement("div");
|
|
17
22
|
h.className = "blind-container", h.style.cssText = `
|
|
@@ -26,35 +31,35 @@ const q = (t) => new Promise((e) => setTimeout(e, t)), N = { stiffness: 80, damp
|
|
|
26
31
|
`;
|
|
27
32
|
const f = [];
|
|
28
33
|
for (let $ = 0; $ < r; $++) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
|
|
34
|
+
const w = document.createElement("div");
|
|
35
|
+
if (s === "horizontal") {
|
|
36
|
+
const x = 100 / r, S = `calc(${x}% + 1px)`;
|
|
37
|
+
w.style.cssText = `
|
|
33
38
|
position: absolute;
|
|
34
|
-
top: ${
|
|
39
|
+
top: ${x * $}%;
|
|
35
40
|
left: 0;
|
|
36
41
|
width: 100%;
|
|
37
42
|
height: ${S};
|
|
38
|
-
background: ${
|
|
43
|
+
background: ${e};
|
|
39
44
|
transform: scaleX(${g === "hidden" ? 0 : 1});
|
|
40
45
|
transform-origin: ${u} center;
|
|
41
46
|
will-change: transform;
|
|
42
47
|
`;
|
|
43
48
|
} else {
|
|
44
|
-
const
|
|
45
|
-
|
|
49
|
+
const x = 100 / r, S = `calc(${x}% + 1px)`;
|
|
50
|
+
w.style.cssText = `
|
|
46
51
|
position: absolute;
|
|
47
52
|
top: 0;
|
|
48
|
-
left: ${
|
|
53
|
+
left: ${x * $}%;
|
|
49
54
|
width: ${S};
|
|
50
55
|
height: 100%;
|
|
51
|
-
background: ${
|
|
56
|
+
background: ${e};
|
|
52
57
|
transform: scaleY(${g === "hidden" ? 0 : 1});
|
|
53
58
|
transform-origin: ${u === "left" ? "top" : "bottom"} center;
|
|
54
59
|
will-change: transform;
|
|
55
60
|
`;
|
|
56
61
|
}
|
|
57
|
-
f.push(
|
|
62
|
+
f.push(w), h.appendChild(w);
|
|
58
63
|
}
|
|
59
64
|
return p.appendChild(h), { container: h, blinds: f };
|
|
60
65
|
};
|
|
@@ -62,27 +67,27 @@ const q = (t) => new Promise((e) => setTimeout(e, t)), N = { stiffness: 80, damp
|
|
|
62
67
|
out: () => {
|
|
63
68
|
let p = null;
|
|
64
69
|
return a = new Promise((u) => {
|
|
65
|
-
|
|
70
|
+
l = u;
|
|
66
71
|
}), {
|
|
67
72
|
springs: Array.from({ length: r }, (u, y) => ({
|
|
68
73
|
from: 0,
|
|
69
74
|
to: 1,
|
|
70
|
-
spring:
|
|
71
|
-
offset: y *
|
|
75
|
+
spring: i,
|
|
76
|
+
offset: y * c,
|
|
72
77
|
tick: (h) => {
|
|
73
78
|
if (!p) return;
|
|
74
79
|
const f = p.blinds[y];
|
|
75
|
-
f && (
|
|
80
|
+
f && (s === "horizontal" ? f.style.transform = `scaleX(${h})` : f.style.transform = `scaleY(${h})`);
|
|
76
81
|
}
|
|
77
82
|
})),
|
|
78
83
|
schedule: "chain",
|
|
79
84
|
prepare: (u) => {
|
|
80
|
-
|
|
85
|
+
b(u), u.style.zIndex = "1000", p = o(u, "hidden", "left");
|
|
81
86
|
},
|
|
82
87
|
onStart: () => {
|
|
83
88
|
},
|
|
84
89
|
onEnd: () => {
|
|
85
|
-
|
|
90
|
+
l && l();
|
|
86
91
|
}
|
|
87
92
|
};
|
|
88
93
|
},
|
|
@@ -92,22 +97,22 @@ const q = (t) => new Promise((e) => setTimeout(e, t)), N = { stiffness: 80, damp
|
|
|
92
97
|
springs: Array.from({ length: r }, (u, y) => ({
|
|
93
98
|
from: 1,
|
|
94
99
|
to: 0,
|
|
95
|
-
spring:
|
|
96
|
-
offset: y *
|
|
100
|
+
spring: n,
|
|
101
|
+
offset: y * c,
|
|
97
102
|
tick: (h) => {
|
|
98
103
|
if (!p) return;
|
|
99
104
|
const f = p.blinds[y];
|
|
100
|
-
f && (
|
|
105
|
+
f && (s === "horizontal" ? f.style.transform = `scaleX(${h})` : f.style.transform = `scaleY(${h})`);
|
|
101
106
|
}
|
|
102
107
|
})),
|
|
103
108
|
schedule: "chain",
|
|
104
109
|
prepare: (u) => {
|
|
105
|
-
u.style.position = "relative", u.style.zIndex = "0", p =
|
|
110
|
+
u.style.position = "relative", u.style.zIndex = "0", p = o(u, "closed", "right");
|
|
106
111
|
},
|
|
107
112
|
onStart: () => {
|
|
108
113
|
},
|
|
109
114
|
wait: async () => {
|
|
110
|
-
a && await a, await
|
|
115
|
+
a && await a, await U(d);
|
|
111
116
|
},
|
|
112
117
|
onEnd: () => {
|
|
113
118
|
p && p.container && p.container.remove();
|
|
@@ -115,92 +120,108 @@ const q = (t) => new Promise((e) => setTimeout(e, t)), N = { stiffness: 80, damp
|
|
|
115
120
|
};
|
|
116
121
|
}
|
|
117
122
|
};
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
}, R = {
|
|
124
|
+
stiffness: 150,
|
|
125
|
+
damping: 20
|
|
126
|
+
}, tt = {
|
|
127
|
+
stiffness: 100,
|
|
128
|
+
damping: 20
|
|
129
|
+
}, Dt = (t = {}) => {
|
|
130
|
+
var s, c;
|
|
131
|
+
const { opacity: n = !1, direction: i = "enter" } = t, d = i === "enter" ? R : tt, r = {
|
|
132
|
+
stiffness: ((s = t.spring) == null ? void 0 : s.stiffness) ?? d.stiffness,
|
|
133
|
+
damping: ((c = t.spring) == null ? void 0 : c.damping) ?? d.damping
|
|
123
134
|
};
|
|
124
|
-
return
|
|
125
|
-
in: (
|
|
126
|
-
spring:
|
|
127
|
-
|
|
128
|
-
|
|
135
|
+
return i === "enter" ? {
|
|
136
|
+
in: (e) => ({
|
|
137
|
+
spring: r,
|
|
138
|
+
prepare: () => {
|
|
139
|
+
e.style.willChange = n ? "transform, opacity" : "transform", e.style.backfaceVisibility = "hidden", e.style.perspective = "1000px", e.style.transformStyle = "preserve-3d", e.style.contain = "layout paint";
|
|
140
|
+
},
|
|
141
|
+
tick: (a) => {
|
|
142
|
+
e.style.transform = `translate3d(${(1 - a) * 100}%, 0, 0)`, n && (e.style.opacity = a.toString());
|
|
143
|
+
},
|
|
144
|
+
onEnd: () => {
|
|
145
|
+
e.style.willChange = "auto", e.style.backfaceVisibility = "", e.style.perspective = "", e.style.transformStyle = "", e.style.contain = "";
|
|
129
146
|
}
|
|
130
147
|
}),
|
|
131
|
-
out: (
|
|
132
|
-
spring:
|
|
133
|
-
prepare: (
|
|
134
|
-
|
|
148
|
+
out: (e, a) => ({
|
|
149
|
+
spring: r,
|
|
150
|
+
prepare: (l) => {
|
|
151
|
+
b(l, a), l.style.zIndex = "-1", l.style.willChange = n ? "transform, opacity" : "transform", l.style.backfaceVisibility = "hidden", l.style.perspective = "1000px", l.style.transformStyle = "preserve-3d", l.style.contain = "layout paint", l.style.pointerEvents = "none";
|
|
135
152
|
},
|
|
136
|
-
tick: (
|
|
137
|
-
|
|
153
|
+
tick: (l) => {
|
|
154
|
+
e.style.transform = `translate3d(${-(1 - l) * 20}%, 0, 0)`, n && (e.style.opacity = l.toString());
|
|
138
155
|
}
|
|
139
156
|
})
|
|
140
157
|
} : {
|
|
141
|
-
in: (
|
|
142
|
-
spring:
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
in: (e) => ({
|
|
159
|
+
spring: r,
|
|
160
|
+
prepare: () => {
|
|
161
|
+
e.style.willChange = n ? "transform, opacity" : "transform", e.style.backfaceVisibility = "hidden", e.style.perspective = "1000px", e.style.transformStyle = "preserve-3d", e.style.contain = "layout paint";
|
|
162
|
+
},
|
|
163
|
+
tick: (a) => {
|
|
164
|
+
e.style.transform = `translate3d(${-(1 - a) * 20}%, 0, 0)`, n && (e.style.opacity = a.toString());
|
|
145
165
|
},
|
|
146
|
-
|
|
147
|
-
|
|
166
|
+
onEnd: () => {
|
|
167
|
+
e.style.willChange = "auto", e.style.backfaceVisibility = "", e.style.perspective = "", e.style.transformStyle = "", e.style.contain = "";
|
|
148
168
|
}
|
|
149
169
|
}),
|
|
150
|
-
out: (
|
|
151
|
-
spring:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
prepare: (a) => {
|
|
156
|
-
w(a, n), a.style.zIndex = "100";
|
|
170
|
+
out: (e, a) => ({
|
|
171
|
+
spring: r,
|
|
172
|
+
prepare: (l) => {
|
|
173
|
+
b(l, a), l.style.zIndex = "100", l.style.willChange = n ? "transform, opacity" : "transform", l.style.backfaceVisibility = "hidden", l.style.perspective = "1000px", l.style.transformStyle = "preserve-3d", l.style.contain = "layout paint", l.style.pointerEvents = "none";
|
|
157
174
|
},
|
|
158
|
-
tick: (
|
|
159
|
-
|
|
175
|
+
tick: (l) => {
|
|
176
|
+
e.style.transform = `translate3d(${(1 - l) * 100}%, 0, 0)`, n && (e.style.opacity = l.toString());
|
|
160
177
|
}
|
|
161
178
|
})
|
|
162
179
|
};
|
|
163
|
-
},
|
|
180
|
+
}, nt = { stiffness: 65, damping: 16 }, et = { stiffness: 65, damping: 14 }, it = 0, Ft = (t = {}) => {
|
|
164
181
|
const {
|
|
165
|
-
inSpring:
|
|
166
|
-
outSpring:
|
|
167
|
-
transitionDelay: d =
|
|
182
|
+
inSpring: n = et,
|
|
183
|
+
outSpring: i = nt,
|
|
184
|
+
transitionDelay: d = it
|
|
168
185
|
} = t;
|
|
169
|
-
let r,
|
|
186
|
+
let r, s = null;
|
|
170
187
|
return {
|
|
171
|
-
in: (
|
|
172
|
-
spring:
|
|
173
|
-
prepare: (
|
|
174
|
-
|
|
188
|
+
in: (c) => ({
|
|
189
|
+
spring: n,
|
|
190
|
+
prepare: (e) => {
|
|
191
|
+
e.style.opacity = "0", e.style.willChange = "opacity";
|
|
175
192
|
},
|
|
176
193
|
wait: async () => {
|
|
177
|
-
r && (await r, await
|
|
194
|
+
r && (await r, await U(d));
|
|
178
195
|
},
|
|
179
|
-
tick: (
|
|
180
|
-
|
|
196
|
+
tick: (e) => {
|
|
197
|
+
const a = q(e, 2);
|
|
198
|
+
c.style.opacity = a.toString();
|
|
199
|
+
},
|
|
200
|
+
onEnd: () => {
|
|
201
|
+
c.style.willChange = "auto";
|
|
181
202
|
}
|
|
182
203
|
}),
|
|
183
|
-
out: (
|
|
184
|
-
|
|
204
|
+
out: (c, e) => (r = new Promise((a) => {
|
|
205
|
+
s = a;
|
|
185
206
|
}), {
|
|
186
|
-
spring:
|
|
207
|
+
spring: i,
|
|
187
208
|
tick: (a) => {
|
|
188
|
-
|
|
209
|
+
c.style.opacity = a.toString();
|
|
189
210
|
},
|
|
190
211
|
prepare: () => {
|
|
191
|
-
|
|
212
|
+
b(c, e), c.style.willChange = "opacity";
|
|
192
213
|
},
|
|
193
214
|
onEnd: () => {
|
|
194
|
-
|
|
215
|
+
s && s(), c.style.willChange = "auto";
|
|
195
216
|
}
|
|
196
217
|
})
|
|
197
218
|
};
|
|
198
|
-
},
|
|
219
|
+
}, st = {
|
|
199
220
|
stiffness: 5,
|
|
200
221
|
// Lower stiffness for smoother motion
|
|
201
222
|
damping: 3.5
|
|
202
223
|
// Lower damping for more fluid movement
|
|
203
|
-
},
|
|
224
|
+
}, rt = 0.8, lt = "white", m = {
|
|
204
225
|
start: 0,
|
|
205
226
|
end: 0.45
|
|
206
227
|
}, E = {
|
|
@@ -209,195 +230,195 @@ const q = (t) => new Promise((e) => setTimeout(e, t)), N = { stiffness: 80, damp
|
|
|
209
230
|
}, A = {
|
|
210
231
|
start: 0.2,
|
|
211
232
|
end: 0.9
|
|
212
|
-
},
|
|
233
|
+
}, Yt = (t) => {
|
|
213
234
|
var r;
|
|
214
|
-
const
|
|
235
|
+
const n = (t == null ? void 0 : t.spring) ?? st, i = (t == null ? void 0 : t.scale) ?? rt, d = ((r = t == null ? void 0 : t.border) == null ? void 0 : r.color) ?? lt;
|
|
215
236
|
return {
|
|
216
|
-
out: async (
|
|
217
|
-
const
|
|
218
|
-
...
|
|
237
|
+
out: async (s, c) => {
|
|
238
|
+
const e = I(c), a = L(document.body, c.positionedParent), l = ot(d, {
|
|
239
|
+
...e,
|
|
219
240
|
top: a.top
|
|
220
241
|
});
|
|
221
|
-
let
|
|
242
|
+
let o = 1, p = -e.top;
|
|
222
243
|
return {
|
|
223
|
-
spring:
|
|
244
|
+
spring: n,
|
|
224
245
|
prepare: () => {
|
|
225
|
-
|
|
226
|
-
for (const g of
|
|
227
|
-
|
|
246
|
+
b(s), P(s, e), v(s, e), ct(s, e);
|
|
247
|
+
for (const g of l)
|
|
248
|
+
c.positionedParent.appendChild(g);
|
|
228
249
|
},
|
|
229
250
|
onEnd: () => {
|
|
230
|
-
|
|
231
|
-
for (const g of
|
|
232
|
-
|
|
251
|
+
s.style.clipPath = "", s.style.transformOrigin = "", setTimeout(() => {
|
|
252
|
+
for (const g of l)
|
|
253
|
+
c.positionedParent.removeChild(g);
|
|
233
254
|
}, 1e3);
|
|
234
255
|
},
|
|
235
256
|
tick: (g) => {
|
|
236
257
|
const u = 1 - g;
|
|
237
|
-
if (
|
|
238
|
-
const f =
|
|
258
|
+
if (m.start <= u && u <= m.end) {
|
|
259
|
+
const f = C(
|
|
239
260
|
u,
|
|
240
|
-
|
|
241
|
-
|
|
261
|
+
m.start,
|
|
262
|
+
m.end
|
|
242
263
|
);
|
|
243
|
-
|
|
264
|
+
o = 1 - (1 - i) * f;
|
|
244
265
|
}
|
|
245
266
|
if (E.start <= u && u <= E.end) {
|
|
246
|
-
const f =
|
|
267
|
+
const f = C(
|
|
247
268
|
u,
|
|
248
269
|
E.start,
|
|
249
270
|
E.end
|
|
250
271
|
);
|
|
251
|
-
|
|
272
|
+
o = i + (1 - i) * f;
|
|
252
273
|
}
|
|
253
274
|
if (A.start <= u && u <= A.end) {
|
|
254
|
-
const f =
|
|
275
|
+
const f = C(
|
|
255
276
|
u,
|
|
256
277
|
A.start,
|
|
257
278
|
A.end
|
|
258
279
|
);
|
|
259
|
-
p = -
|
|
280
|
+
p = -e.top - e.height * f;
|
|
260
281
|
}
|
|
261
|
-
|
|
262
|
-
const y = (
|
|
263
|
-
|
|
282
|
+
s.style.transform = `translateY(${p}px) scale(${o})`;
|
|
283
|
+
const y = (e.width - e.width * o) / 2, h = (e.height - e.height * o) / 2;
|
|
284
|
+
at(l, y, h);
|
|
264
285
|
}
|
|
265
286
|
};
|
|
266
287
|
},
|
|
267
|
-
in: async (
|
|
268
|
-
const
|
|
269
|
-
let a =
|
|
288
|
+
in: async (s, c) => {
|
|
289
|
+
const e = I(c);
|
|
290
|
+
let a = i, l = -e.top + e.height;
|
|
270
291
|
return {
|
|
271
|
-
spring:
|
|
292
|
+
spring: n,
|
|
272
293
|
prepare: () => {
|
|
273
|
-
|
|
294
|
+
P(s, e), v(s, e), s.style.transform = `translateY(${-e.top + e.height}px) scale(${i})`;
|
|
274
295
|
},
|
|
275
296
|
onEnd: () => {
|
|
276
|
-
|
|
297
|
+
s.style.clipPath = "", s.style.transformOrigin = "", s.style.transform = "";
|
|
277
298
|
},
|
|
278
|
-
tick: (
|
|
279
|
-
if (
|
|
280
|
-
const p =
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
299
|
+
tick: (o) => {
|
|
300
|
+
if (m.start <= o && o <= m.end) {
|
|
301
|
+
const p = C(
|
|
302
|
+
o,
|
|
303
|
+
m.start,
|
|
304
|
+
m.end
|
|
284
305
|
);
|
|
285
|
-
a = 1 - (1 -
|
|
306
|
+
a = 1 - (1 - i) * p;
|
|
286
307
|
}
|
|
287
|
-
if (E.start <=
|
|
288
|
-
const p =
|
|
289
|
-
|
|
308
|
+
if (E.start <= o && o <= E.end) {
|
|
309
|
+
const p = C(
|
|
310
|
+
o,
|
|
290
311
|
E.start,
|
|
291
312
|
E.end
|
|
292
313
|
);
|
|
293
|
-
a =
|
|
314
|
+
a = i + (1 - i) * p;
|
|
294
315
|
}
|
|
295
|
-
if (A.start <=
|
|
296
|
-
const p =
|
|
297
|
-
|
|
316
|
+
if (A.start <= o && o <= A.end) {
|
|
317
|
+
const p = C(
|
|
318
|
+
o,
|
|
298
319
|
A.start,
|
|
299
320
|
A.end
|
|
300
321
|
);
|
|
301
|
-
|
|
322
|
+
l = -e.top + e.height * (1 - p);
|
|
302
323
|
}
|
|
303
|
-
|
|
324
|
+
s.style.transform = `translateY(${l}px) scale(${a})`;
|
|
304
325
|
}
|
|
305
326
|
};
|
|
306
327
|
}
|
|
307
328
|
};
|
|
308
329
|
};
|
|
309
|
-
function
|
|
310
|
-
const d =
|
|
330
|
+
function at(t, n, i) {
|
|
331
|
+
const d = n * 0.7, r = i * 0.7;
|
|
311
332
|
t.topLeft.style.transform = `translate(${d}px, ${r}px)`, t.topRight.style.transform = `translate(${-d}px, ${r}px)`, t.bottomLeft.style.transform = `translate(${d}px, ${-r}px)`, t.bottomRight.style.transform = `translate(${-d}px, ${-r}px)`;
|
|
312
333
|
}
|
|
313
|
-
function
|
|
334
|
+
function ot(t = "white", n) {
|
|
314
335
|
const r = document.createElement("div");
|
|
315
|
-
r.style.position = "fixed", r.style.pointerEvents = "none", r.style.zIndex = "9999", r.style.top = `${
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
|
|
336
|
+
r.style.position = "fixed", r.style.pointerEvents = "none", r.style.zIndex = "9999", r.style.top = `${n.top - 1}px`, r.style.left = `${n.left - 1}px`, r.style.width = "15px", r.style.height = "15px";
|
|
337
|
+
const s = document.createElement("div");
|
|
338
|
+
s.style.position = "absolute", s.style.width = "15px", s.style.height = "1px", s.style.backgroundColor = t, s.style.top = "0", s.style.left = "0";
|
|
339
|
+
const c = document.createElement("div");
|
|
340
|
+
c.style.position = "absolute", c.style.width = "1px", c.style.height = "15px", c.style.backgroundColor = t, c.style.top = "0", c.style.left = "0", r.appendChild(s), r.appendChild(c);
|
|
341
|
+
const e = document.createElement("div");
|
|
342
|
+
e.style.position = "fixed", e.style.pointerEvents = "none", e.style.zIndex = "9999", e.style.top = `${n.top - 1}px`, e.style.left = `${n.left + n.width - 15 + 1}px`, e.style.width = "15px", e.style.height = "15px";
|
|
322
343
|
const a = document.createElement("div");
|
|
323
344
|
a.style.position = "absolute", a.style.width = "15px", a.style.height = "1px", a.style.backgroundColor = t, a.style.top = "0", a.style.right = "0";
|
|
324
|
-
const c = document.createElement("div");
|
|
325
|
-
c.style.position = "absolute", c.style.width = "1px", c.style.height = "15px", c.style.backgroundColor = t, c.style.top = "0", c.style.right = "0", n.appendChild(a), n.appendChild(c);
|
|
326
345
|
const l = document.createElement("div");
|
|
327
|
-
l.style.position = "
|
|
346
|
+
l.style.position = "absolute", l.style.width = "1px", l.style.height = "15px", l.style.backgroundColor = t, l.style.top = "0", l.style.right = "0", e.appendChild(a), e.appendChild(l);
|
|
347
|
+
const o = document.createElement("div");
|
|
348
|
+
o.style.position = "fixed", o.style.pointerEvents = "none", o.style.zIndex = "9999", o.style.top = `${n.top + n.height - 15 + 1}px`, o.style.left = `${n.left - 1}px`, o.style.width = "15px", o.style.height = "15px";
|
|
328
349
|
const p = document.createElement("div");
|
|
329
350
|
p.style.position = "absolute", p.style.width = "15px", p.style.height = "1px", p.style.backgroundColor = t, p.style.bottom = "0", p.style.left = "0";
|
|
330
351
|
const g = document.createElement("div");
|
|
331
|
-
g.style.position = "absolute", g.style.width = "1px", g.style.height = "15px", g.style.backgroundColor = t, g.style.bottom = "0", g.style.left = "0",
|
|
352
|
+
g.style.position = "absolute", g.style.width = "1px", g.style.height = "15px", g.style.backgroundColor = t, g.style.bottom = "0", g.style.left = "0", o.appendChild(p), o.appendChild(g);
|
|
332
353
|
const u = document.createElement("div");
|
|
333
|
-
u.style.position = "fixed", u.style.pointerEvents = "none", u.style.zIndex = "9999", u.style.top = `${
|
|
354
|
+
u.style.position = "fixed", u.style.pointerEvents = "none", u.style.zIndex = "9999", u.style.top = `${n.top + n.height - 15 + 1}px`, u.style.left = `${n.left + n.width - 15 + 1}px`, u.style.width = "15px", u.style.height = "15px";
|
|
334
355
|
const y = document.createElement("div");
|
|
335
356
|
y.style.position = "absolute", y.style.width = "15px", y.style.height = "1px", y.style.backgroundColor = t, y.style.bottom = "0", y.style.right = "0";
|
|
336
357
|
const h = document.createElement("div");
|
|
337
358
|
return h.style.position = "absolute", h.style.width = "1px", h.style.height = "15px", h.style.backgroundColor = t, h.style.bottom = "0", h.style.right = "0", u.appendChild(y), u.appendChild(h), {
|
|
338
359
|
topLeft: r,
|
|
339
|
-
topRight:
|
|
340
|
-
bottomLeft:
|
|
360
|
+
topRight: e,
|
|
361
|
+
bottomLeft: o,
|
|
341
362
|
bottomRight: u,
|
|
342
363
|
*[Symbol.iterator]() {
|
|
343
|
-
yield r, yield
|
|
364
|
+
yield r, yield e, yield o, yield u;
|
|
344
365
|
}
|
|
345
366
|
};
|
|
346
367
|
}
|
|
347
|
-
function
|
|
348
|
-
const
|
|
368
|
+
function I(t) {
|
|
369
|
+
const n = L(document.body, t.positionedParent);
|
|
349
370
|
return {
|
|
350
371
|
top: t.scroll.y,
|
|
351
372
|
left: 0,
|
|
352
|
-
width:
|
|
353
|
-
height: window.innerHeight -
|
|
373
|
+
width: n.width,
|
|
374
|
+
height: window.innerHeight - n.top
|
|
354
375
|
};
|
|
355
376
|
}
|
|
356
|
-
function
|
|
357
|
-
const
|
|
358
|
-
t.style.transformOrigin = `${
|
|
377
|
+
function P(t, n) {
|
|
378
|
+
const i = n.left + n.width / 2, d = n.top + n.height / 2;
|
|
379
|
+
t.style.transformOrigin = `${i}px ${d}px`;
|
|
359
380
|
}
|
|
360
|
-
function
|
|
381
|
+
function v(t, n) {
|
|
361
382
|
t.style.clipPath = `polygon(
|
|
362
|
-
${
|
|
363
|
-
${
|
|
364
|
-
${
|
|
365
|
-
${
|
|
383
|
+
${n.left}px ${n.top}px,
|
|
384
|
+
${n.left + n.width}px ${n.top}px,
|
|
385
|
+
${n.left + n.width}px ${n.top + n.height}px,
|
|
386
|
+
${n.left}px ${n.top + n.height}px
|
|
366
387
|
)`;
|
|
367
388
|
}
|
|
368
|
-
function
|
|
369
|
-
t.style.transform = `translateY(${-
|
|
389
|
+
function ct(t, n) {
|
|
390
|
+
t.style.transform = `translateY(${-n.top}px)`;
|
|
370
391
|
}
|
|
371
|
-
function
|
|
372
|
-
return t <=
|
|
392
|
+
function C(t, n, i) {
|
|
393
|
+
return t <= n ? 0 : t >= i ? 1 : (t - n) / (i - n);
|
|
373
394
|
}
|
|
374
|
-
function
|
|
375
|
-
return t.querySelector(`[data-hero-key="${
|
|
395
|
+
function dt(t, n) {
|
|
396
|
+
return t.querySelector(`[data-hero-key="${n}"]`);
|
|
376
397
|
}
|
|
377
|
-
const
|
|
378
|
-
var
|
|
379
|
-
const
|
|
380
|
-
stiffness: ((
|
|
381
|
-
damping: ((
|
|
382
|
-
},
|
|
383
|
-
let r = null,
|
|
398
|
+
const Ot = (t = {}) => {
|
|
399
|
+
var c, e;
|
|
400
|
+
const n = {
|
|
401
|
+
stiffness: ((c = t.spring) == null ? void 0 : c.stiffness) ?? 300,
|
|
402
|
+
damping: ((e = t.spring) == null ? void 0 : e.damping) ?? 30
|
|
403
|
+
}, i = t.timeout ?? 300, d = t.maxDistance ?? 700;
|
|
404
|
+
let r = null, s = null;
|
|
384
405
|
return {
|
|
385
|
-
in: async (a,
|
|
386
|
-
const
|
|
406
|
+
in: async (a, l) => {
|
|
407
|
+
const o = a, p = Array.from(o.querySelectorAll("[data-hero-key]"));
|
|
387
408
|
if (p.length === 0)
|
|
388
409
|
return {
|
|
389
|
-
spring:
|
|
410
|
+
spring: n,
|
|
390
411
|
tick: () => {
|
|
391
412
|
}
|
|
392
413
|
// No hero elements, skip animation
|
|
393
414
|
};
|
|
394
415
|
if (!await new Promise((y) => {
|
|
395
|
-
r ? y(!0) : (
|
|
396
|
-
|
|
397
|
-
},
|
|
416
|
+
r ? y(!0) : (s = y, setTimeout(() => {
|
|
417
|
+
s = null, y(!1);
|
|
418
|
+
}, i));
|
|
398
419
|
}) || !r)
|
|
399
420
|
return r = null, {
|
|
400
|
-
spring:
|
|
421
|
+
spring: n,
|
|
401
422
|
tick: () => {
|
|
402
423
|
}
|
|
403
424
|
// No fromNode, skip animation
|
|
@@ -405,38 +426,39 @@ const vt = (t = {}) => {
|
|
|
405
426
|
const u = p.map((y) => {
|
|
406
427
|
const h = y.getAttribute("data-hero-key");
|
|
407
428
|
if (!h) return null;
|
|
408
|
-
const f =
|
|
429
|
+
const f = dt(r, h);
|
|
409
430
|
if (!f) return null;
|
|
410
|
-
const $ = y,
|
|
431
|
+
const $ = y, w = L(r, f), x = L(o, $), S = w.left - x.left - l.scrollOffset.x, W = w.top - x.top - l.scrollOffset.y, X = w.width / x.width, z = w.height / x.height, B = $.style.transform, H = $.style.position, M = $.style.transformOrigin, N = $.style.zIndex, V = $.style.willChange;
|
|
411
432
|
return {
|
|
412
433
|
toEl: $,
|
|
413
434
|
dx: S,
|
|
414
|
-
dy:
|
|
435
|
+
dy: W,
|
|
415
436
|
dw: X,
|
|
416
|
-
dh:
|
|
417
|
-
originalTransform:
|
|
418
|
-
originalPosition:
|
|
419
|
-
originalTransformOrigin:
|
|
420
|
-
originalZIndex:
|
|
437
|
+
dh: z,
|
|
438
|
+
originalTransform: B,
|
|
439
|
+
originalPosition: H,
|
|
440
|
+
originalTransformOrigin: M,
|
|
441
|
+
originalZIndex: N,
|
|
442
|
+
originalWillChange: V
|
|
421
443
|
};
|
|
422
444
|
}).filter(
|
|
423
445
|
(y) => y !== null && Math.abs(y.dy) <= d
|
|
424
446
|
);
|
|
425
447
|
return r = null, u.length === 0 ? {
|
|
426
|
-
spring:
|
|
448
|
+
spring: n,
|
|
427
449
|
tick: () => {
|
|
428
450
|
}
|
|
429
451
|
// No matching hero elements
|
|
430
452
|
} : {
|
|
431
|
-
spring:
|
|
453
|
+
spring: n,
|
|
432
454
|
prepare: () => {
|
|
433
455
|
u.forEach(({ toEl: y }) => {
|
|
434
|
-
y.style.position = "relative", y.style.transformOrigin = "top left", y.style.zIndex = "1000";
|
|
456
|
+
y.style.position = "relative", y.style.transformOrigin = "top left", y.style.zIndex = "1000", y.style.willChange = "transform";
|
|
435
457
|
});
|
|
436
458
|
},
|
|
437
459
|
tick: (y) => {
|
|
438
|
-
u.forEach(({ toEl: h, dx: f, dy: $, dw:
|
|
439
|
-
h.style.transform = `translate(${(1 - y) * f}px,${(1 - y) * $}px) scale(${y + (1 - y) *
|
|
460
|
+
u.forEach(({ toEl: h, dx: f, dy: $, dw: w, dh: x }) => {
|
|
461
|
+
h.style.transform = `translate(${(1 - y) * f}px,${(1 - y) * $}px) scale(${y + (1 - y) * w}, ${y + (1 - y) * x})`;
|
|
440
462
|
});
|
|
441
463
|
},
|
|
442
464
|
onEnd: () => {
|
|
@@ -446,9 +468,10 @@ const vt = (t = {}) => {
|
|
|
446
468
|
originalTransform: h,
|
|
447
469
|
originalPosition: f,
|
|
448
470
|
originalTransformOrigin: $,
|
|
449
|
-
originalZIndex:
|
|
471
|
+
originalZIndex: w,
|
|
472
|
+
originalWillChange: x
|
|
450
473
|
}) => {
|
|
451
|
-
y.style.transform = h, y.style.position = f, y.style.transformOrigin = $, y.style.zIndex = x;
|
|
474
|
+
y.style.transform = h, y.style.position = f, y.style.transformOrigin = $, y.style.zIndex = w, y.style.willChange = x;
|
|
452
475
|
}
|
|
453
476
|
);
|
|
454
477
|
}
|
|
@@ -456,386 +479,398 @@ const vt = (t = {}) => {
|
|
|
456
479
|
},
|
|
457
480
|
out: async (a) => ({
|
|
458
481
|
onStart: () => {
|
|
459
|
-
r = a,
|
|
482
|
+
r = a, s && (s(!0), s = null);
|
|
460
483
|
},
|
|
461
|
-
prepare: (
|
|
462
|
-
|
|
484
|
+
prepare: (l) => {
|
|
485
|
+
b(l), l.style.opacity = "0";
|
|
463
486
|
}
|
|
464
487
|
})
|
|
465
488
|
};
|
|
466
489
|
};
|
|
467
|
-
function
|
|
490
|
+
function ht({
|
|
468
491
|
detailRect: t,
|
|
469
|
-
galleryRect:
|
|
470
|
-
pageRect:
|
|
492
|
+
galleryRect: n,
|
|
493
|
+
pageRect: i,
|
|
471
494
|
scrollOffset: d
|
|
472
495
|
}, r) {
|
|
473
|
-
const
|
|
496
|
+
const s = n.left - t.left + (n.width - t.width) / 2 - d.x, c = n.top - t.top + (n.height - t.height) / 2 - d.y, e = n.width / t.width, a = n.height / t.height, l = Math.max(e, a), o = t.top / i.height * 100, p = (i.width - (t.left + t.width)) / i.width * 100, g = (i.height - (t.top + t.height)) / i.height * 100, u = t.left / i.width * 100;
|
|
474
497
|
return r.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, (y) => {
|
|
475
|
-
const h = 1 - y, f =
|
|
476
|
-
r.style.clipPath = `inset(${f}% ${$}% ${
|
|
498
|
+
const h = 1 - y, f = o * h, $ = p * h, w = g * h, x = u * h;
|
|
499
|
+
r.style.clipPath = `inset(${f}% ${$}% ${w}% ${x}%)`, r.style.transform = `translate(${s * h}px, ${c * h}px) scale(${1 + (l - 1) * h})`;
|
|
477
500
|
};
|
|
478
501
|
}
|
|
479
|
-
function
|
|
502
|
+
function pt({
|
|
480
503
|
detailRect: t,
|
|
481
|
-
galleryRect:
|
|
482
|
-
pageRect:
|
|
504
|
+
galleryRect: n,
|
|
505
|
+
pageRect: i,
|
|
483
506
|
scrollOffset: d
|
|
484
507
|
}, r) {
|
|
485
|
-
const
|
|
508
|
+
const s = n.left - t.left + (n.width - t.width) / 2 + d.x, c = n.top - t.top + (n.height - t.height) / 2 + d.y, e = n.width / t.width, a = n.height / t.height, l = Math.min(e, a), o = t.top / i.height * 100, p = (i.width - (t.left + t.width)) / i.width * 100, g = (i.height - (t.top + t.height)) / i.height * 100, u = t.left / i.width * 100;
|
|
486
509
|
return r.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, (y) => {
|
|
487
|
-
const h = 1 - y, f =
|
|
488
|
-
r.style.clipPath = `inset(${f}% ${$}% ${
|
|
510
|
+
const h = 1 - y, f = o * h, $ = p * h, w = g * h, x = u * h;
|
|
511
|
+
r.style.clipPath = `inset(${f}% ${$}% ${w}% ${x}%)`, r.style.transform = `translate(${s * h - d.x}px, ${c * h - d.y}px) scale(${1 + (l - 1) * h})`;
|
|
489
512
|
};
|
|
490
513
|
}
|
|
491
|
-
function
|
|
514
|
+
function yt(t, n, i) {
|
|
492
515
|
const d = t.querySelector(
|
|
493
516
|
"[data-instagram-detail-key]"
|
|
494
|
-
), r =
|
|
517
|
+
), r = n.querySelector(
|
|
495
518
|
"[data-instagram-detail-key]"
|
|
496
519
|
);
|
|
497
|
-
if (t.querySelectorAll("[data-instagram-detail-key]").length > 1 ||
|
|
520
|
+
if (t.querySelectorAll("[data-instagram-detail-key]").length > 1 || n.querySelectorAll("[data-instagram-detail-key]").length > 1)
|
|
498
521
|
return null;
|
|
499
|
-
let
|
|
522
|
+
let s = null, c = null, e = !1;
|
|
500
523
|
if (!d && r) {
|
|
501
|
-
|
|
502
|
-
const
|
|
503
|
-
if (!
|
|
504
|
-
|
|
505
|
-
`[data-instagram-gallery-key="${
|
|
506
|
-
),
|
|
524
|
+
c = r;
|
|
525
|
+
const o = c.getAttribute("data-instagram-detail-key");
|
|
526
|
+
if (!o) return null;
|
|
527
|
+
s = t.querySelector(
|
|
528
|
+
`[data-instagram-gallery-key="${o}"]`
|
|
529
|
+
), s && (e = !0);
|
|
507
530
|
} else if (d && !r) {
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
if (!
|
|
511
|
-
|
|
512
|
-
`[data-instagram-gallery-key="${
|
|
513
|
-
),
|
|
531
|
+
c = d;
|
|
532
|
+
const o = c.getAttribute("data-instagram-detail-key");
|
|
533
|
+
if (!o) return null;
|
|
534
|
+
s = n.querySelector(
|
|
535
|
+
`[data-instagram-gallery-key="${o}"]`
|
|
536
|
+
), s && (e = !1);
|
|
514
537
|
}
|
|
515
|
-
if (!
|
|
538
|
+
if (!s || !c)
|
|
516
539
|
return null;
|
|
517
|
-
const a = L(
|
|
518
|
-
return
|
|
540
|
+
const a = L(e ? t : n, s), l = L(e ? n : t, c);
|
|
541
|
+
return e ? {
|
|
519
542
|
isEnterMode: !0,
|
|
520
|
-
inAnimation:
|
|
543
|
+
inAnimation: ht(
|
|
521
544
|
{
|
|
522
|
-
detailRect:
|
|
545
|
+
detailRect: l,
|
|
523
546
|
galleryRect: a,
|
|
524
|
-
pageRect:
|
|
525
|
-
scrollOffset:
|
|
547
|
+
pageRect: n.getBoundingClientRect(),
|
|
548
|
+
scrollOffset: i
|
|
526
549
|
},
|
|
527
|
-
|
|
550
|
+
n
|
|
528
551
|
)
|
|
529
552
|
// No outAnimation - gallery stays visible
|
|
530
553
|
} : {
|
|
531
554
|
isEnterMode: !1,
|
|
532
|
-
outAnimation:
|
|
555
|
+
outAnimation: pt(
|
|
533
556
|
{
|
|
534
|
-
detailRect:
|
|
557
|
+
detailRect: l,
|
|
535
558
|
galleryRect: a,
|
|
536
559
|
pageRect: t.getBoundingClientRect(),
|
|
537
|
-
scrollOffset:
|
|
560
|
+
scrollOffset: i
|
|
538
561
|
},
|
|
539
562
|
t
|
|
540
563
|
)
|
|
541
564
|
// No inAnimation - gallery stays visible
|
|
542
565
|
};
|
|
543
566
|
}
|
|
544
|
-
const
|
|
545
|
-
var
|
|
546
|
-
const
|
|
547
|
-
stiffness: ((
|
|
548
|
-
damping: ((
|
|
549
|
-
},
|
|
550
|
-
let d = null, r = null,
|
|
567
|
+
const Ut = (t = {}) => {
|
|
568
|
+
var c, e;
|
|
569
|
+
const n = {
|
|
570
|
+
stiffness: ((c = t.spring) == null ? void 0 : c.stiffness) ?? 150,
|
|
571
|
+
damping: ((e = t.spring) == null ? void 0 : e.damping) ?? 20
|
|
572
|
+
}, i = t.timeout ?? 300;
|
|
573
|
+
let d = null, r = null, s = null;
|
|
551
574
|
return {
|
|
552
|
-
in: async (a, { scrollOffset:
|
|
553
|
-
const
|
|
575
|
+
in: async (a, { scrollOffset: l }) => {
|
|
576
|
+
const o = a;
|
|
554
577
|
return !await new Promise((g) => {
|
|
555
578
|
d ? g(!0) : (r = g, setTimeout(() => {
|
|
556
579
|
r = null, g(!1);
|
|
557
|
-
},
|
|
580
|
+
}, i));
|
|
558
581
|
}) || !d ? (d = null, {
|
|
559
|
-
spring:
|
|
582
|
+
spring: n,
|
|
560
583
|
tick: () => {
|
|
561
584
|
}
|
|
562
|
-
}) : (
|
|
563
|
-
spring:
|
|
585
|
+
}) : (s = yt(d, o, l), s ? (d = null, {
|
|
586
|
+
spring: n,
|
|
564
587
|
tick: (g) => {
|
|
565
|
-
|
|
588
|
+
s != null && s.inAnimation && s.inAnimation(g);
|
|
566
589
|
}
|
|
567
590
|
}) : {
|
|
568
|
-
spring:
|
|
591
|
+
spring: n,
|
|
569
592
|
tick: () => {
|
|
570
593
|
}
|
|
571
594
|
});
|
|
572
595
|
},
|
|
573
|
-
out: async (a
|
|
574
|
-
spring:
|
|
596
|
+
out: async (a) => ({
|
|
597
|
+
spring: n,
|
|
575
598
|
onStart: () => {
|
|
576
599
|
d = a, r && (r(!0), r = null);
|
|
577
600
|
},
|
|
578
601
|
prepare: (l) => {
|
|
579
|
-
|
|
602
|
+
b(l), s != null && s.isEnterMode || (l.style.zIndex = "-1");
|
|
580
603
|
},
|
|
581
604
|
tick: (l) => {
|
|
582
|
-
|
|
605
|
+
s != null && s.outAnimation && s.outAnimation(l);
|
|
583
606
|
}
|
|
584
607
|
})
|
|
585
608
|
};
|
|
586
609
|
};
|
|
587
|
-
function
|
|
610
|
+
function ut({
|
|
588
611
|
detailRect: t,
|
|
589
|
-
galleryRect:
|
|
590
|
-
pageRect:
|
|
612
|
+
galleryRect: n,
|
|
613
|
+
pageRect: i,
|
|
591
614
|
scrollOffset: d
|
|
592
615
|
}, r) {
|
|
593
|
-
const
|
|
616
|
+
const s = n.left - t.left + (n.width - t.width) / 2 - d.x, c = n.top - t.top + (n.height - t.height) / 2 - d.y, e = n.width / t.width, a = n.height / t.height, l = Math.max(e, a), o = t.top / i.height * 100, p = (i.width - (t.left + t.width)) / i.width * 100, g = (i.height - (t.top + t.height)) / i.height * 100, u = t.left / i.width * 100;
|
|
594
617
|
return r.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, (y) => {
|
|
595
|
-
const h = 1 - y, f =
|
|
596
|
-
r.style.clipPath = `inset(${f}% ${$}% ${
|
|
618
|
+
const h = 1 - y, f = o * h, $ = p * h, w = g * h, x = u * h;
|
|
619
|
+
r.style.clipPath = `inset(${f}% ${$}% ${w}% ${x}%)`, r.style.transform = `translate(${s * h}px, ${c * h}px) scale(${1 + (l - 1) * h})`;
|
|
597
620
|
};
|
|
598
621
|
}
|
|
599
|
-
function
|
|
622
|
+
function gt({
|
|
600
623
|
galleryRect: t,
|
|
601
|
-
detailRect:
|
|
602
|
-
scrollOffset:
|
|
624
|
+
detailRect: n,
|
|
625
|
+
scrollOffset: i
|
|
603
626
|
}, d) {
|
|
604
|
-
const r =
|
|
605
|
-
return (
|
|
627
|
+
const r = n.left - t.left + (n.width - t.width) / 2 + i.x, s = n.top - t.top + (n.height - t.height) / 2 + i.y, c = n.width / t.width, e = n.height / t.height, a = Math.max(c, e);
|
|
628
|
+
return (l) => {
|
|
606
629
|
d.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`;
|
|
607
|
-
const
|
|
608
|
-
d.style.transform = `translate(${r *
|
|
630
|
+
const o = 1 - l;
|
|
631
|
+
d.style.transform = `translate(${r * o - i.x}px, ${s * o - i.y}px) scale(${1 + (a - 1) * o})`, d.style.opacity = `${1 - o}`;
|
|
609
632
|
};
|
|
610
633
|
}
|
|
611
|
-
function
|
|
634
|
+
function ft({
|
|
612
635
|
galleryRect: t,
|
|
613
|
-
detailRect:
|
|
614
|
-
scrollOffset:
|
|
636
|
+
detailRect: n,
|
|
637
|
+
scrollOffset: i
|
|
615
638
|
}, d) {
|
|
616
|
-
const r =
|
|
617
|
-
return (
|
|
618
|
-
const
|
|
619
|
-
d.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, d.style.transform = `translate(${r *
|
|
639
|
+
const r = n.left - t.left + (n.width - t.width) / 2 - i.x, s = n.top - t.top + (n.height - t.height) / 2 - i.y, c = n.width / t.width, e = n.height / t.height, a = Math.max(c, e);
|
|
640
|
+
return (l) => {
|
|
641
|
+
const o = 1 - l, p = l;
|
|
642
|
+
d.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, d.style.transform = `translate(${r * o}px, ${s * o}px) scale(${1 + (a - 1) * o})`, d.style.opacity = `${p}`;
|
|
620
643
|
};
|
|
621
644
|
}
|
|
622
|
-
function
|
|
645
|
+
function $t({
|
|
623
646
|
detailRect: t,
|
|
624
|
-
galleryRect:
|
|
625
|
-
pageRect:
|
|
647
|
+
galleryRect: n,
|
|
648
|
+
pageRect: i,
|
|
626
649
|
scrollOffset: d
|
|
627
650
|
}, r) {
|
|
628
|
-
const
|
|
651
|
+
const s = n.left - t.left + (n.width - t.width) / 2 + d.x, c = n.top - t.top + (n.height - t.height) / 2 + d.y, e = n.width / t.width, a = n.height / t.height, l = Math.min(e, a), o = t.top / i.height * 100, p = (i.width - (t.left + t.width)) / i.width * 100, g = (i.height - (t.top + t.height)) / i.height * 100, u = t.left / i.width * 100;
|
|
629
652
|
return r.style.transformOrigin = `${t.left + t.width / 2}px ${t.top + t.height / 2}px`, (y) => {
|
|
630
|
-
const h = 1 - y, f =
|
|
631
|
-
r.style.clipPath = `inset(${f}% ${$}% ${
|
|
653
|
+
const h = 1 - y, f = o * h, $ = p * h, w = g * h, x = u * h;
|
|
654
|
+
r.style.clipPath = `inset(${f}% ${$}% ${w}% ${x}%)`, r.style.transform = `translate(${s * h - d.x}px, ${c * h - d.y}px) scale(${1 + (l - 1) * h})`;
|
|
632
655
|
};
|
|
633
656
|
}
|
|
634
|
-
function
|
|
657
|
+
function xt(t, n, i) {
|
|
635
658
|
const d = t.querySelector(
|
|
636
659
|
"[data-pinterest-detail-key]"
|
|
637
|
-
), r =
|
|
660
|
+
), r = n.querySelector(
|
|
638
661
|
"[data-pinterest-detail-key]"
|
|
639
662
|
);
|
|
640
|
-
if (t.querySelectorAll("[data-pinterest-detail-key]").length > 1 ||
|
|
663
|
+
if (t.querySelectorAll("[data-pinterest-detail-key]").length > 1 || n.querySelectorAll("[data-pinterest-detail-key]").length > 1)
|
|
641
664
|
return null;
|
|
642
|
-
let
|
|
665
|
+
let s = null, c = null, e = !1;
|
|
643
666
|
if (!d && r) {
|
|
644
|
-
|
|
645
|
-
const
|
|
646
|
-
if (!
|
|
647
|
-
|
|
648
|
-
`[data-pinterest-gallery-key="${
|
|
649
|
-
),
|
|
667
|
+
c = r;
|
|
668
|
+
const o = c.getAttribute("data-pinterest-detail-key");
|
|
669
|
+
if (!o) return null;
|
|
670
|
+
s = t.querySelector(
|
|
671
|
+
`[data-pinterest-gallery-key="${o}"]`
|
|
672
|
+
), s && (e = !0);
|
|
650
673
|
} else if (d && !r) {
|
|
651
|
-
|
|
652
|
-
const
|
|
653
|
-
if (!
|
|
654
|
-
|
|
655
|
-
`[data-pinterest-gallery-key="${
|
|
656
|
-
),
|
|
674
|
+
c = d;
|
|
675
|
+
const o = c.getAttribute("data-pinterest-detail-key");
|
|
676
|
+
if (!o) return null;
|
|
677
|
+
s = n.querySelector(
|
|
678
|
+
`[data-pinterest-gallery-key="${o}"]`
|
|
679
|
+
), s && (e = !1);
|
|
657
680
|
}
|
|
658
|
-
if (!
|
|
681
|
+
if (!s || !c)
|
|
659
682
|
return null;
|
|
660
|
-
const a = L(
|
|
661
|
-
return
|
|
662
|
-
inAnimation:
|
|
683
|
+
const a = L(e ? t : n, s), l = L(e ? n : t, c);
|
|
684
|
+
return e ? {
|
|
685
|
+
inAnimation: ut(
|
|
663
686
|
{
|
|
664
|
-
detailRect:
|
|
687
|
+
detailRect: l,
|
|
665
688
|
galleryRect: a,
|
|
666
|
-
pageRect:
|
|
667
|
-
scrollOffset:
|
|
689
|
+
pageRect: n.getBoundingClientRect(),
|
|
690
|
+
scrollOffset: i
|
|
668
691
|
},
|
|
669
|
-
|
|
692
|
+
n
|
|
670
693
|
),
|
|
671
|
-
outAnimation:
|
|
672
|
-
{ galleryRect: a, detailRect:
|
|
694
|
+
outAnimation: gt(
|
|
695
|
+
{ galleryRect: a, detailRect: l, scrollOffset: i },
|
|
673
696
|
t
|
|
674
697
|
)
|
|
675
698
|
} : {
|
|
676
|
-
inAnimation:
|
|
677
|
-
{ galleryRect: a, detailRect:
|
|
678
|
-
|
|
699
|
+
inAnimation: ft(
|
|
700
|
+
{ galleryRect: a, detailRect: l, scrollOffset: i },
|
|
701
|
+
n
|
|
679
702
|
),
|
|
680
|
-
outAnimation:
|
|
703
|
+
outAnimation: $t(
|
|
681
704
|
{
|
|
682
|
-
detailRect:
|
|
705
|
+
detailRect: l,
|
|
683
706
|
galleryRect: a,
|
|
684
707
|
pageRect: t.getBoundingClientRect(),
|
|
685
|
-
scrollOffset:
|
|
708
|
+
scrollOffset: i
|
|
686
709
|
},
|
|
687
710
|
t
|
|
688
711
|
)
|
|
689
712
|
};
|
|
690
713
|
}
|
|
691
|
-
const
|
|
692
|
-
var
|
|
693
|
-
const
|
|
694
|
-
stiffness: ((
|
|
695
|
-
damping: ((
|
|
696
|
-
},
|
|
697
|
-
let d = null, r = null,
|
|
714
|
+
const Wt = (t = {}) => {
|
|
715
|
+
var c, e;
|
|
716
|
+
const n = {
|
|
717
|
+
stiffness: ((c = t.spring) == null ? void 0 : c.stiffness) ?? 30,
|
|
718
|
+
damping: ((e = t.spring) == null ? void 0 : e.damping) ?? 10
|
|
719
|
+
}, i = t.timeout ?? 300;
|
|
720
|
+
let d = null, r = null, s = null;
|
|
698
721
|
return {
|
|
699
|
-
in: async (a, { scrollOffset:
|
|
700
|
-
const
|
|
722
|
+
in: async (a, { scrollOffset: l }) => {
|
|
723
|
+
const o = a;
|
|
701
724
|
return !await new Promise((g) => {
|
|
702
725
|
d ? g(!0) : (r = g, setTimeout(() => {
|
|
703
726
|
r = null, g(!1);
|
|
704
|
-
},
|
|
727
|
+
}, i));
|
|
705
728
|
}) || !d ? (d = null, {
|
|
706
|
-
spring:
|
|
729
|
+
spring: n,
|
|
707
730
|
tick: () => {
|
|
708
731
|
}
|
|
709
|
-
}) : (
|
|
710
|
-
spring:
|
|
732
|
+
}) : (s = xt(d, o, l), s ? (d = null, {
|
|
733
|
+
spring: n,
|
|
711
734
|
tick: (g) => {
|
|
712
|
-
|
|
735
|
+
s && s.inAnimation(g);
|
|
713
736
|
}
|
|
714
737
|
}) : {
|
|
715
|
-
spring:
|
|
738
|
+
spring: n,
|
|
716
739
|
tick: () => {
|
|
717
740
|
}
|
|
718
741
|
});
|
|
719
742
|
},
|
|
720
743
|
out: async (a) => ({
|
|
721
|
-
spring:
|
|
744
|
+
spring: n,
|
|
722
745
|
onStart: () => {
|
|
723
746
|
d = a, r && (r(!0), r = null);
|
|
724
747
|
},
|
|
725
|
-
prepare: (
|
|
726
|
-
|
|
748
|
+
prepare: (l) => {
|
|
749
|
+
b(l), l.style.zIndex = "-1";
|
|
727
750
|
},
|
|
728
|
-
tick: (
|
|
729
|
-
|
|
751
|
+
tick: (l) => {
|
|
752
|
+
s && s.outAnimation(l);
|
|
730
753
|
}
|
|
731
754
|
})
|
|
732
755
|
};
|
|
733
|
-
},
|
|
756
|
+
}, D = {
|
|
734
757
|
stiffness: 5,
|
|
735
758
|
damping: 4
|
|
736
|
-
},
|
|
737
|
-
var a,
|
|
738
|
-
const
|
|
739
|
-
stiffness: ((a = t.spring) == null ? void 0 : a.stiffness) ??
|
|
740
|
-
damping: ((
|
|
741
|
-
}, d =
|
|
742
|
-
let r = null,
|
|
743
|
-
const
|
|
744
|
-
if (r === null ||
|
|
759
|
+
}, Xt = (t = {}) => {
|
|
760
|
+
var a, l;
|
|
761
|
+
const n = t.direction ?? "up", i = {
|
|
762
|
+
stiffness: ((a = t.spring) == null ? void 0 : a.stiffness) ?? D.stiffness,
|
|
763
|
+
damping: ((l = t.spring) == null ? void 0 : l.damping) ?? D.damping
|
|
764
|
+
}, d = n === "up";
|
|
765
|
+
let r = null, s = null, c = null;
|
|
766
|
+
const e = () => {
|
|
767
|
+
if (r === null || s === null)
|
|
745
768
|
return null;
|
|
746
|
-
const
|
|
747
|
-
return Math.max(
|
|
769
|
+
const o = Math.min(r, s), p = window.innerHeight;
|
|
770
|
+
return Math.max(o, p);
|
|
748
771
|
};
|
|
749
772
|
return {
|
|
750
|
-
in: (
|
|
751
|
-
spring:
|
|
773
|
+
in: (o) => (s = o.offsetHeight, r !== null && (c = e()), {
|
|
774
|
+
spring: i,
|
|
775
|
+
prepare: () => {
|
|
776
|
+
o.style.willChange = "transform";
|
|
777
|
+
},
|
|
752
778
|
tick: (p) => {
|
|
753
|
-
if (
|
|
779
|
+
if (c === null && (c = e(), c === null))
|
|
754
780
|
return;
|
|
755
|
-
const g = d ? (1 - p) *
|
|
756
|
-
|
|
781
|
+
const g = d ? (1 - p) * c : (1 - p) * -c;
|
|
782
|
+
o.style.transform = `translateY(${g}px)`;
|
|
783
|
+
},
|
|
784
|
+
onEnd: () => {
|
|
785
|
+
o.style.willChange = "auto";
|
|
757
786
|
}
|
|
758
787
|
}),
|
|
759
|
-
out: (
|
|
760
|
-
spring:
|
|
788
|
+
out: (o) => ({
|
|
789
|
+
spring: i,
|
|
761
790
|
onStart: () => {
|
|
762
|
-
r =
|
|
791
|
+
r = o.offsetHeight, s !== null && (c = e());
|
|
763
792
|
},
|
|
764
793
|
tick: (p) => {
|
|
765
|
-
if (
|
|
794
|
+
if (c === null && (c = e(), c === null))
|
|
766
795
|
return;
|
|
767
|
-
const g = d ? (1 - p) * -
|
|
768
|
-
|
|
796
|
+
const g = d ? (1 - p) * -c : (1 - p) * c;
|
|
797
|
+
o.style.transform = `translateY(${g}px)`;
|
|
769
798
|
},
|
|
770
799
|
prepare: (p) => {
|
|
771
|
-
|
|
800
|
+
b(p), p.style.zIndex = d ? "-1" : "1", p.style.willChange = "transform";
|
|
772
801
|
}
|
|
773
802
|
})
|
|
774
803
|
};
|
|
775
804
|
}, F = {
|
|
776
805
|
stiffness: 15,
|
|
777
806
|
damping: 7
|
|
778
|
-
},
|
|
779
|
-
var r,
|
|
780
|
-
const
|
|
807
|
+
}, zt = (t = {}) => {
|
|
808
|
+
var r, s;
|
|
809
|
+
const n = t.direction ?? "left", i = {
|
|
781
810
|
stiffness: ((r = t.spring) == null ? void 0 : r.stiffness) ?? F.stiffness,
|
|
782
|
-
damping: ((
|
|
783
|
-
}, d =
|
|
811
|
+
damping: ((s = t.spring) == null ? void 0 : s.damping) ?? F.damping
|
|
812
|
+
}, d = n === "left";
|
|
784
813
|
return {
|
|
785
|
-
in: (
|
|
786
|
-
spring:
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
814
|
+
in: (c) => ({
|
|
815
|
+
spring: i,
|
|
816
|
+
prepare: () => {
|
|
817
|
+
c.style.willChange = "transform";
|
|
818
|
+
},
|
|
819
|
+
tick: (e) => {
|
|
820
|
+
const a = d ? (1 - e) * 100 : (1 - e) * -100;
|
|
821
|
+
c.style.transform = `translateX(${a}%)`;
|
|
822
|
+
},
|
|
823
|
+
onEnd: () => {
|
|
824
|
+
c.style.willChange = "auto";
|
|
790
825
|
}
|
|
791
826
|
}),
|
|
792
|
-
out: (
|
|
793
|
-
spring:
|
|
827
|
+
out: (c, e) => ({
|
|
828
|
+
spring: i,
|
|
794
829
|
tick: (a) => {
|
|
795
|
-
const
|
|
796
|
-
|
|
830
|
+
const l = d ? (1 - a) * -100 : (1 - a) * 100;
|
|
831
|
+
c.style.transform = `translateX(${l}%)`;
|
|
797
832
|
},
|
|
798
833
|
prepare: (a) => {
|
|
799
|
-
|
|
834
|
+
b(a, e), a.style.zIndex = d ? "-1" : "1", a.style.willChange = "transform";
|
|
800
835
|
}
|
|
801
836
|
})
|
|
802
837
|
};
|
|
803
|
-
}, Y = { stiffness: 17, damping: 6 },
|
|
804
|
-
let t,
|
|
838
|
+
}, Y = { stiffness: 17, damping: 6 }, k = 20, _ = 800, Bt = () => {
|
|
839
|
+
let t, n = null;
|
|
805
840
|
return {
|
|
806
|
-
in: (
|
|
841
|
+
in: (i) => ({
|
|
807
842
|
spring: Y,
|
|
808
843
|
prepare: (d) => {
|
|
809
|
-
d.style.transform = `perspective(${
|
|
844
|
+
d.style.willChange = "transform", d.style.transform = `perspective(${_}px) rotateY(${k}deg) translateX(-100%)`;
|
|
810
845
|
},
|
|
811
846
|
wait: async () => {
|
|
812
847
|
t && await t;
|
|
813
848
|
},
|
|
814
849
|
tick: (d) => {
|
|
815
|
-
const r = (1 - d) *
|
|
816
|
-
|
|
850
|
+
const r = (1 - d) * k, s = -(1 - d) * 100;
|
|
851
|
+
i.style.transform = `perspective(${_}px) rotateY(${r}deg) translateX(${s}%)`;
|
|
817
852
|
},
|
|
818
853
|
onEnd: () => {
|
|
819
|
-
|
|
854
|
+
i.style.transform = "", i.style.willChange = "auto";
|
|
820
855
|
}
|
|
821
856
|
}),
|
|
822
|
-
out: (
|
|
823
|
-
|
|
857
|
+
out: (i, d) => (t = new Promise((r) => {
|
|
858
|
+
n = r;
|
|
824
859
|
}), {
|
|
825
860
|
spring: Y,
|
|
826
861
|
prepare: (r) => {
|
|
827
|
-
|
|
862
|
+
b(r, d), r.style.willChange = "transform";
|
|
828
863
|
},
|
|
829
864
|
tick: (r) => {
|
|
830
|
-
const
|
|
831
|
-
|
|
865
|
+
const s = 1 - r, c = s * k, e = s * 100;
|
|
866
|
+
i.style.transform = `perspective(${_}px) rotateY(${-c}deg) translateX(${e}%)`;
|
|
832
867
|
},
|
|
833
868
|
onEnd: () => {
|
|
834
|
-
|
|
869
|
+
n && n(), i.style.transform = "";
|
|
835
870
|
}
|
|
836
871
|
})
|
|
837
872
|
};
|
|
838
|
-
},
|
|
873
|
+
}, wt = { stiffness: 1, damping: 1 }, bt = { stiffness: 20, damping: 25 }, mt = "#000000", Et = "circle", O = "CURTAIN_REVEAL_OVERLAY_ID", At = {
|
|
839
874
|
position: "fixed",
|
|
840
875
|
inset: "0",
|
|
841
876
|
width: "100vw",
|
|
@@ -845,17 +880,17 @@ const Yt = (t = {}) => {
|
|
|
845
880
|
alignItems: "center",
|
|
846
881
|
justifyContent: "center",
|
|
847
882
|
overflow: "hidden"
|
|
848
|
-
},
|
|
883
|
+
}, Lt = {
|
|
849
884
|
position: "relative",
|
|
850
885
|
display: "inline-block",
|
|
851
886
|
height: "5.5rem",
|
|
852
887
|
overflow: "hidden"
|
|
853
|
-
},
|
|
888
|
+
}, Ct = {
|
|
854
889
|
display: "flex",
|
|
855
890
|
height: "100%",
|
|
856
891
|
willChange: "transform",
|
|
857
892
|
transition: "transform 0.3s ease"
|
|
858
|
-
},
|
|
893
|
+
}, St = {
|
|
859
894
|
display: "inline-flex",
|
|
860
895
|
alignItems: "center",
|
|
861
896
|
justifyContent: "center",
|
|
@@ -864,58 +899,58 @@ const Yt = (t = {}) => {
|
|
|
864
899
|
fontWeight: "900",
|
|
865
900
|
letterSpacing: "0.02em",
|
|
866
901
|
color: "#FFFFFF"
|
|
867
|
-
},
|
|
868
|
-
function
|
|
902
|
+
}, Tt = 0.4, T = 0.5, kt = 0.2;
|
|
903
|
+
function _t(t, n) {
|
|
869
904
|
switch (t) {
|
|
870
905
|
case "circle":
|
|
871
|
-
return `circle(${
|
|
906
|
+
return `circle(${n * 100}% at 50% 50%)`;
|
|
872
907
|
case "square":
|
|
873
|
-
return `inset(${(1 -
|
|
908
|
+
return `inset(${(1 - n) * 50}% round ${10 * n}%)`;
|
|
874
909
|
case "triangle": {
|
|
875
|
-
const
|
|
876
|
-
return `polygon(50% ${50 -
|
|
910
|
+
const i = n * 100;
|
|
911
|
+
return `polygon(50% ${50 - i}%, ${50 - i}% ${50 + i}%, ${50 + i}% ${50 + i}%)`;
|
|
877
912
|
}
|
|
878
913
|
}
|
|
879
914
|
}
|
|
880
|
-
const
|
|
915
|
+
const It = (t) => t.reduce((n, i) => n + i, 0), Ht = (t = {}) => {
|
|
881
916
|
const {
|
|
882
|
-
background:
|
|
883
|
-
texts:
|
|
884
|
-
shape: d =
|
|
885
|
-
inSpring: r =
|
|
886
|
-
outSpring:
|
|
887
|
-
textStyle:
|
|
917
|
+
background: n = mt,
|
|
918
|
+
texts: i = [],
|
|
919
|
+
shape: d = Et,
|
|
920
|
+
inSpring: r = bt,
|
|
921
|
+
outSpring: s = wt,
|
|
922
|
+
textStyle: c = {}
|
|
888
923
|
} = t;
|
|
889
924
|
return {
|
|
890
|
-
out: (
|
|
891
|
-
const
|
|
925
|
+
out: (e, a) => {
|
|
926
|
+
const l = e.style.opacity;
|
|
892
927
|
return {
|
|
893
|
-
spring:
|
|
928
|
+
spring: s,
|
|
894
929
|
from: 1,
|
|
895
930
|
to: 0,
|
|
896
|
-
prepare: (
|
|
897
|
-
|
|
931
|
+
prepare: (o) => {
|
|
932
|
+
b(o, a), o.style.opacity = "1";
|
|
898
933
|
},
|
|
899
|
-
tick: (
|
|
900
|
-
const p = Math.max(0,
|
|
901
|
-
|
|
934
|
+
tick: (o) => {
|
|
935
|
+
const p = Math.max(0, o - Tt);
|
|
936
|
+
e.style.opacity = String(p);
|
|
902
937
|
},
|
|
903
938
|
onEnd: () => {
|
|
904
|
-
|
|
939
|
+
e.style.opacity = l;
|
|
905
940
|
}
|
|
906
941
|
};
|
|
907
942
|
},
|
|
908
|
-
in: (
|
|
909
|
-
let a = null,
|
|
943
|
+
in: (e) => {
|
|
944
|
+
let a = null, l = null, o = null;
|
|
910
945
|
const p = document.body.style.overflow, g = document.getElementById(
|
|
911
946
|
O
|
|
912
947
|
);
|
|
913
948
|
let u = [];
|
|
914
949
|
const y = () => {
|
|
915
|
-
a = document.createElement("div"), a.id = O, Object.assign(a.style,
|
|
950
|
+
a = document.createElement("div"), a.id = O, Object.assign(a.style, At, { background: n }), document.body.appendChild(a), l = document.createElement("div"), Object.assign(l.style, Lt), a.appendChild(l), o = document.createElement("div"), Object.assign(o.style, Ct), l.appendChild(o), i.forEach((h) => {
|
|
916
951
|
const f = document.createElement("div");
|
|
917
|
-
f.textContent = h, Object.assign(f.style,
|
|
918
|
-
}), u = Array.from(
|
|
952
|
+
f.textContent = h, Object.assign(f.style, St, c), o.appendChild(f);
|
|
953
|
+
}), u = Array.from(o.children).map(
|
|
919
954
|
(h) => h.getBoundingClientRect().width
|
|
920
955
|
);
|
|
921
956
|
};
|
|
@@ -924,44 +959,44 @@ const kt = (t) => t.reduce((e, s) => e + s, 0), Wt = (t = {}) => {
|
|
|
924
959
|
from: 0,
|
|
925
960
|
to: 1,
|
|
926
961
|
prepare: () => {
|
|
927
|
-
document.body.style.overflow = "hidden",
|
|
962
|
+
document.body.style.overflow = "hidden", e.style.opacity = "1", g == null || g.remove(), y(), a && l && (a.style.clipPath = "none", l.style.transform = "scale(1)");
|
|
928
963
|
},
|
|
929
964
|
tick: (h) => {
|
|
930
|
-
if (!(!a || !
|
|
931
|
-
if (h <=
|
|
932
|
-
const f = h /
|
|
933
|
-
Math.floor(f *
|
|
934
|
-
|
|
935
|
-
),
|
|
936
|
-
|
|
965
|
+
if (!(!a || !l || !o)) {
|
|
966
|
+
if (h <= T && i.length > 0) {
|
|
967
|
+
const f = h / T, $ = Math.min(
|
|
968
|
+
Math.floor(f * i.length),
|
|
969
|
+
i.length - 1
|
|
970
|
+
), w = u[$] ?? 0, x = It(u.slice(0, $));
|
|
971
|
+
l.style.width = `${w}px`, o.style.transform = `translateX(-${x}px)`;
|
|
937
972
|
}
|
|
938
|
-
if (h >
|
|
973
|
+
if (h > T) {
|
|
939
974
|
const $ = 1 - Math.max(
|
|
940
975
|
0,
|
|
941
|
-
Math.min(1, (h -
|
|
976
|
+
Math.min(1, (h - T) / kt)
|
|
942
977
|
);
|
|
943
|
-
a.style.clipPath =
|
|
978
|
+
a.style.clipPath = _t(d, $), l.style.transform = `scale(${$})`;
|
|
944
979
|
}
|
|
945
980
|
}
|
|
946
981
|
},
|
|
947
982
|
onEnd: () => {
|
|
948
|
-
a == null || a.remove(), a =
|
|
983
|
+
a == null || a.remove(), a = l = o = null, document.body.style.overflow = p;
|
|
949
984
|
}
|
|
950
985
|
};
|
|
951
986
|
}
|
|
952
987
|
};
|
|
953
988
|
};
|
|
954
989
|
export {
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
990
|
+
vt as blind,
|
|
991
|
+
Ht as curtainReveal,
|
|
992
|
+
Dt as drill,
|
|
993
|
+
Ft as fade,
|
|
994
|
+
Yt as film,
|
|
995
|
+
Ot as hero,
|
|
996
|
+
Ut as instagram,
|
|
997
|
+
Vt as jaemin,
|
|
998
|
+
Wt as pinterest,
|
|
999
|
+
Xt as scroll,
|
|
1000
|
+
zt as slide,
|
|
1001
|
+
Bt as strip
|
|
967
1002
|
};
|