@mkbabb/keyframes.js 5.1.0 → 5.2.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/README.md +83 -3
- package/dist/backward-color-BtbRcnna.js +108 -0
- package/dist/compile-BHCTPerD.js +30 -0
- package/dist/{delegation-DWwr4IXr.js → delegation-BQYCrP2p.js} +5 -9
- package/dist/{draw-svg-GURj9nin.js → draw-svg-CK9Qrly8.js} +13 -25
- package/dist/easing-serialize-D4LZCB6i.js +21 -0
- package/dist/engine/index.d.ts +422 -156
- package/dist/engine/index.js +16 -17
- package/dist/engine-CPK_udUQ.js +1172 -0
- package/dist/engine-DlpimZtM.js +3 -0
- package/dist/entry-D82NKUhP.js +148 -0
- package/dist/format-BdIvdLzG.js +114 -0
- package/dist/{group-vJcsHKN9.js → group-HM7N4uOE.js} +153 -123
- package/dist/handle-D4xrf_ya.js +21 -0
- package/dist/{ingest-S5hUe20K.js → ingest-_g6tfk2e.js} +2 -2
- package/dist/keyframes.d.ts +702 -178
- package/dist/keyframes.js +295 -74
- package/dist/morph-svg-KUrH9KnK.js +79 -0
- package/dist/motion-path-wM5tPfrY.js +26 -0
- package/dist/presets-DeDJYL4G.js +275 -0
- package/dist/{scheduler-CUtVnuoU.js → scheduler-CfGIC3GX.js} +1 -1
- package/dist/{scroll-CxpYFO4u.js → scroll-BEyCx0b_.js} +165 -58
- package/dist/{sequence-C_DCiOIQ.js → sequence-s0bL7Uul.js} +118 -90
- package/dist/{validate-DDeGnvSt.js → validate-xFZ_Ld1k.js} +7 -7
- package/dist/view-transition-BPJQxUTC.js +305 -0
- package/package.json +113 -83
- package/dist/animation-BGyzfzBq.js +0 -947
- package/dist/compile-CcSUwM8R.js +0 -276
- package/dist/engine-DEVgCTUy.js +0 -156
- package/dist/engine-DrBtsKaf.js +0 -4
- package/dist/format-C-Gi9r7L.js +0 -123
- package/dist/grammar-BLucehC4.js +0 -23
- package/dist/morph-svg-BToeumw5.js +0 -89
- package/dist/motion-path-pQVbamWT.js +0 -35
- package/dist/presets-BG2Fczzq.js +0 -275
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { a as e } from "./sequence-s0bL7Uul.js";
|
|
2
|
+
import { t } from "./engine-CPK_udUQ.js";
|
|
3
|
+
import { CSSCubicBezier as n, steppedEase as r } from "@mkbabb/value.js";
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
|
+
var i = Object.defineProperty, a = (e, t) => {
|
|
6
|
+
let n = {};
|
|
7
|
+
for (var r in e) i(n, r, {
|
|
8
|
+
get: e[r],
|
|
9
|
+
enumerable: !0
|
|
10
|
+
});
|
|
11
|
+
return t || i(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
12
|
+
}, ee = "\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n", te = "\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n", ne = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n", re = "\n8%,\n41% {\n transform: translateX(-10px);\n}\n25%,\n58% {\n transform: translateX(10px);\n}\n75% {\n transform: translateX(-5px);\n}\n92% {\n transform: translateX(5px);\n}\n0%,\n100% {\n transform: translateX(0);\n}\n", ie = "\n 0%, 20%, 50%, 80%, 100% {\n transform: translateY(0);\n }\n 40% {\n transform: translateY(-30px);\n }\n 60% {\n transform: translateY(-15px);\n }\n", ae = "\n 0% {\n transform: perspective(400px) rotateY(0);\n animation-timing-function: ease-out;\n }\n 40% {\n transform: perspective(400px) translateZ(150px) rotateY(170deg);\n animation-timing-function: ease-out;\n }\n 50% {\n transform: perspective(400px) translateZ(150px) rotateY(190deg) scale(1);\n animation-timing-function: ease-in;\n }\n 80% {\n transform: perspective(400px) rotateY(360deg) scale(.95);\n animation-timing-function: ease-in;\n }\n 100% {\n transform: perspective(400px) scale(1);\n animation-timing-function: ease-in;\n }\n", o = "\n 0% {\n transform-origin: center;\n transform: rotate3d(0, 0, 1, -200deg);\n opacity: 0;\n }\n 100% {\n transform-origin: center;\n transform: none;\n opacity: 1;\n }\n", s = "\n 0% {\n transform: translateY(1000px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", c = "\n 0% {\n transform: scale(1);\n }\n 14% {\n transform: scale(1.3);\n }\n 28% {\n transform: scale(1);\n }\n 42% {\n transform: scale(1.3);\n }\n 70% {\n transform: scale(1);\n }\n", l = "\n 0%, 100% {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n }\n 50% {\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);\n }\n", u = "\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n", d = "\n 0% {\n color: red;\n }\n 15% {\n color: orange;\n }\n 30% {\n color: yellow;\n }\n 45% {\n color: green;\n }\n 60% {\n color: blue;\n }\n 75% {\n color: indigo;\n }\n 90% {\n color: violet;\n }\n 100% {\n color: red;\n }\n", f = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(25%) rotate(10deg);\n opacity: 0.5;\n }\n 75% {\n transform: translateX(0%) rotate(0deg);\n opacity: 0.25;\n }\n 100% {\n transform: translateX(-100%);\n opacity: 0;\n }\n}", p = "@keyframes keyframeDelete {\n 0% {\n transform: translateX(0%) rotate(0deg);\n opacity: 1;\n }\n 25% {\n transform: translateX(0%) rotate(-5deg);\n opacity: 1;\n }\n 50% {\n transform: translateX(-25%) rotate(-10deg);\n opacity: 0.5;\n }\n 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n}", m = "\n0% {\n filter: blur(10px);\n opacity: 0;\n}\n100% {\n filter: blur(0px);\n opacity: 1;\n}\n", oe = "\n0% {\n filter: blur(0px);\n opacity: 1;\n}\n100% {\n filter: blur(10px);\n opacity: 0;\n}\n", se = "\n0% {\n filter: blur(0px);\n}\n50% {\n filter: blur(10px);\n}\n100% {\n filter: blur(0px);\n}\n", ce = "\n0% {\n width: 0%;\n background-color: #ff9999;\n}\n25% {\n width: 25%;\n background-color: #ffcc99;\n}\n50% {\n width: 50%;\n background-color: #ffff99;\n}\n75% {\n width: 75%;\n background-color: #99ff99;\n}\n100% {\n width: 100%;\n background-color: #99ccff;\n}\n", le = "\n0% {\n background-position: -200% 0;\n}\n100% {\n background-position: 200% 0;\n}\n", ue = "\n0%, 100% {\n filter: blur(0px);\n opacity: 1;\n}\n50% {\n filter: blur(4px);\n opacity: 0.5;\n}\n", de = "\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n", fe = "\n0% {\n transform: rotate(0deg) scale(1);\n}\n25% {\n transform: rotate(90deg) scale(1.1);\n}\n50% {\n transform: rotate(180deg) scale(1);\n}\n75% {\n transform: rotate(270deg) scale(0.9);\n}\n100% {\n transform: rotate(360deg) scale(1);\n}\n", h = "\n0%, 100% {\n border-right-color: transparent;\n}\n50% {\n border-right-color: black;\n}\n", pe = "\n0% {\n max-height: 0;\n opacity: 0;\n}\n100% {\n max-height: 1000px;\n opacity: 1;\n}\n", me = "\n0%, 100% {\n transform: translateY(0);\n}\n25% {\n transform: translateY(-10px);\n}\n50% {\n transform: translateY(0);\n}\n75% {\n transform: translateY(-5px);\n}\n", he = "\n0% {\n transform: rotate(0deg);\n border-radius: 50%;\n}\n25% {\n transform: rotate(90deg);\n border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;\n}\n50% {\n transform: rotate(180deg);\n border-radius: 50%;\n}\n75% {\n transform: rotate(270deg);\n border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;\n}\n100% {\n transform: rotate(360deg);\n border-radius: 50%;\n}\n", ge = "\n0% {\n background-position: 50% 0%;\n}\n100% {\n background-position: 50% 100%;\n}\n", _e = "\n0% {\n transform: translateX(-100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", ve = "\n0% {\n transform: translateX(0);\n opacity: 1;\n}\n100% {\n transform: translateX(-100%);\n opacity: 0;\n}\n", ye = "\n0% {\n transform: translateX(100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", be = "\n0% {\n transform: translateX(0%);\n opacity: 1;\n\n}\n100% {\n transform: translateX(100%);\n opacity: 0;\n}\n", xe = "\n0% {\n transform: translateY(0px);\n}\n50% {\n transform: translateY(5px);\n}\n100% {\n transform: translateY(0px);\n}\n", Se = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(-50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(-100%);\n opacity: 1;\n}\n}", Ce = "@keyframes keyframeShift {\n0% {\n transform: translateY(0%);\n opacity: 1;\n}\n\n50% {\n transform: translateY(50%);\n opacity: 0.75;\n}\n\n100% {\n transform: translateY(100%);\n opacity: 1;\n}\n}", g = (e) => new t({
|
|
13
|
+
duration: 700,
|
|
14
|
+
timingFunction: "ease-in-out",
|
|
15
|
+
...e ?? {}
|
|
16
|
+
}).fromString(ee), _ = (e) => new t({
|
|
17
|
+
duration: 700,
|
|
18
|
+
timingFunction: "ease-in-out",
|
|
19
|
+
...e ?? {}
|
|
20
|
+
}).fromString(te), v = (e) => new t({
|
|
21
|
+
duration: 1e3,
|
|
22
|
+
timingFunction: "ease-in-out",
|
|
23
|
+
iterationCount: Infinity,
|
|
24
|
+
...e ?? {}
|
|
25
|
+
}).fromString(ne), y = (e) => new t({
|
|
26
|
+
duration: 820,
|
|
27
|
+
timingFunction: "ease-in-out",
|
|
28
|
+
...e ?? {}
|
|
29
|
+
}).fromString(re), b = (e) => new t({
|
|
30
|
+
duration: 1e3,
|
|
31
|
+
timingFunction: n(.28, .84, .42, 1),
|
|
32
|
+
...e ?? {}
|
|
33
|
+
}).fromString(ie), x = (e) => new t({
|
|
34
|
+
duration: 1e3,
|
|
35
|
+
timingFunction: "ease-in-out",
|
|
36
|
+
...e ?? {}
|
|
37
|
+
}).fromString(ae), S = (e) => new t({
|
|
38
|
+
duration: 1e3,
|
|
39
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
40
|
+
...e ?? {}
|
|
41
|
+
}).fromString(o), C = (e) => new t({
|
|
42
|
+
duration: 1e3,
|
|
43
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
44
|
+
...e ?? {}
|
|
45
|
+
}).fromString(s), w = (e) => new t({
|
|
46
|
+
duration: 1500,
|
|
47
|
+
timingFunction: "ease-in-out",
|
|
48
|
+
iterationCount: Infinity,
|
|
49
|
+
...e ?? {}
|
|
50
|
+
}).fromString(c), T = (e) => new t({
|
|
51
|
+
duration: 2e3,
|
|
52
|
+
timingFunction: "ease-in-out",
|
|
53
|
+
iterationCount: Infinity,
|
|
54
|
+
...e ?? {}
|
|
55
|
+
}).fromString(l), E = (e) => new t({
|
|
56
|
+
duration: 3e3,
|
|
57
|
+
timingFunction: r(40, "jump-end"),
|
|
58
|
+
fillMode: "forwards",
|
|
59
|
+
...e ?? {}
|
|
60
|
+
}).fromString(u), D = (e) => new t({
|
|
61
|
+
duration: 5e3,
|
|
62
|
+
timingFunction: "linear",
|
|
63
|
+
iterationCount: Infinity,
|
|
64
|
+
...e ?? {}
|
|
65
|
+
}).fromString(d), O = (e) => new t({
|
|
66
|
+
duration: 700,
|
|
67
|
+
timingFunction: "bounce-in-ease",
|
|
68
|
+
...e ?? {}
|
|
69
|
+
}).fromString(f), k = (e) => new t({
|
|
70
|
+
duration: 700,
|
|
71
|
+
timingFunction: "bounce-in-ease",
|
|
72
|
+
...e ?? {}
|
|
73
|
+
}).fromString(p), A = (e) => new t({
|
|
74
|
+
duration: 2e3,
|
|
75
|
+
timingFunction: "ease-in-out",
|
|
76
|
+
...e ?? {}
|
|
77
|
+
}).fromString(m), j = (e) => new t({
|
|
78
|
+
duration: 2e3,
|
|
79
|
+
timingFunction: "ease-in-out",
|
|
80
|
+
...e ?? {}
|
|
81
|
+
}).fromString(oe), we = (e) => new t({
|
|
82
|
+
duration: 2e3,
|
|
83
|
+
timingFunction: "ease-in-out",
|
|
84
|
+
...e ?? {}
|
|
85
|
+
}).fromString(se), Te = (e) => new t({
|
|
86
|
+
duration: 3e3,
|
|
87
|
+
timingFunction: "linear",
|
|
88
|
+
fillMode: "forwards",
|
|
89
|
+
...e ?? {}
|
|
90
|
+
}).fromString(ce), M = (e) => new t({
|
|
91
|
+
duration: 1500,
|
|
92
|
+
timingFunction: "linear",
|
|
93
|
+
iterationCount: Infinity,
|
|
94
|
+
...e ?? {}
|
|
95
|
+
}).fromString(le), Ee = (e) => new t({
|
|
96
|
+
duration: 2e3,
|
|
97
|
+
timingFunction: "ease-in-out",
|
|
98
|
+
...e ?? {}
|
|
99
|
+
}).fromString(ue), N = (e) => new t({
|
|
100
|
+
duration: 5e3,
|
|
101
|
+
timingFunction: "ease-in-out",
|
|
102
|
+
iterationCount: Infinity,
|
|
103
|
+
...e ?? {}
|
|
104
|
+
}).fromString(de), De = (e) => new t({
|
|
105
|
+
duration: 2500,
|
|
106
|
+
timingFunction: n(.68, -.55, .265, 1.55),
|
|
107
|
+
...e ?? {}
|
|
108
|
+
}).fromString(fe), P = (e) => new t({
|
|
109
|
+
duration: 800,
|
|
110
|
+
timingFunction: r(2, "jump-start"),
|
|
111
|
+
iterationCount: Infinity,
|
|
112
|
+
...e ?? {}
|
|
113
|
+
}).fromString(h), Oe = (e) => new t({
|
|
114
|
+
duration: 500,
|
|
115
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
116
|
+
fillMode: "forwards",
|
|
117
|
+
...e ?? {}
|
|
118
|
+
}).fromString(pe), F = (e) => new t({
|
|
119
|
+
duration: 1e3,
|
|
120
|
+
timingFunction: n(.28, .84, .42, 1),
|
|
121
|
+
...e ?? {}
|
|
122
|
+
}).fromString(me), I = (e) => new t({
|
|
123
|
+
duration: 2e3,
|
|
124
|
+
timingFunction: "linear",
|
|
125
|
+
iterationCount: Infinity,
|
|
126
|
+
...e ?? {}
|
|
127
|
+
}).fromString(he), L = (e) => new t({
|
|
128
|
+
duration: 1e4,
|
|
129
|
+
timingFunction: "linear",
|
|
130
|
+
iterationCount: Infinity,
|
|
131
|
+
...e ?? {}
|
|
132
|
+
}).fromString(ge), R = (e) => new t({
|
|
133
|
+
duration: 1e3,
|
|
134
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
135
|
+
...e ?? {}
|
|
136
|
+
}).fromString(_e), z = (e) => new t({
|
|
137
|
+
duration: 1e3,
|
|
138
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
139
|
+
...e ?? {}
|
|
140
|
+
}).fromString(ve), B = (e) => new t({
|
|
141
|
+
duration: 1e3,
|
|
142
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
143
|
+
...e ?? {}
|
|
144
|
+
}).fromString(ye), V = (e) => new t({
|
|
145
|
+
duration: 1e3,
|
|
146
|
+
timingFunction: n(.25, .46, .45, .94),
|
|
147
|
+
...e ?? {}
|
|
148
|
+
}).fromString(be), H = (e) => new t({
|
|
149
|
+
duration: 3e3,
|
|
150
|
+
timingFunction: "ease-in-out",
|
|
151
|
+
iterationCount: Infinity,
|
|
152
|
+
fillMode: "none",
|
|
153
|
+
direction: "alternate",
|
|
154
|
+
...e ?? {}
|
|
155
|
+
}).fromString(xe), U = (e) => new t({
|
|
156
|
+
duration: 700,
|
|
157
|
+
timingFunction: "bounce-in-ease",
|
|
158
|
+
...e ?? {}
|
|
159
|
+
}).fromString(Se), W = (e) => new t({
|
|
160
|
+
duration: 700,
|
|
161
|
+
timingFunction: "bounce-in-ease",
|
|
162
|
+
...e ?? {}
|
|
163
|
+
}).fromString(Ce), ke = {
|
|
164
|
+
response: .35,
|
|
165
|
+
dampingFraction: .78
|
|
166
|
+
}, G = {
|
|
167
|
+
response: .5,
|
|
168
|
+
dampingFraction: .5
|
|
169
|
+
}, Ae = {
|
|
170
|
+
response: .7,
|
|
171
|
+
dampingFraction: .95
|
|
172
|
+
}, je = "\n 0% {\n transform: scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n", K = (n) => new t({
|
|
173
|
+
duration: 600,
|
|
174
|
+
timingFunction: e(G),
|
|
175
|
+
...n ?? {}
|
|
176
|
+
}).fromString(je), Me = "\n 0% {\n transform: translateY(40px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", q = (n) => new t({
|
|
177
|
+
duration: 600,
|
|
178
|
+
timingFunction: e(ke),
|
|
179
|
+
...n ?? {}
|
|
180
|
+
}).fromString(Me), Ne = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.15);\n }\n", J = (n) => new t({
|
|
181
|
+
duration: 700,
|
|
182
|
+
timingFunction: e(G),
|
|
183
|
+
...n ?? {}
|
|
184
|
+
}).fromString(Ne), Pe = "\n 0%, 100% {\n transform: rotate(0deg);\n }\n 50% {\n transform: rotate(8deg);\n }\n", Y = (n) => new t({
|
|
185
|
+
duration: 800,
|
|
186
|
+
timingFunction: e(Ae),
|
|
187
|
+
...n ?? {}
|
|
188
|
+
}).fromString(Pe), X = {
|
|
189
|
+
fadeIn: g,
|
|
190
|
+
slideIn: C,
|
|
191
|
+
slideInLeft: R,
|
|
192
|
+
slideInRight: B,
|
|
193
|
+
rotateIn: S,
|
|
194
|
+
blurIn: A,
|
|
195
|
+
springScaleIn: K,
|
|
196
|
+
springSlideIn: q,
|
|
197
|
+
jumpUp: U
|
|
198
|
+
}, Z = {
|
|
199
|
+
fadeOut: _,
|
|
200
|
+
slideOutLeft: z,
|
|
201
|
+
slideOutRight: V,
|
|
202
|
+
blurOut: j,
|
|
203
|
+
warpLeft: O,
|
|
204
|
+
warpRight: k,
|
|
205
|
+
jumpDown: W
|
|
206
|
+
}, Q = {
|
|
207
|
+
pulse: v,
|
|
208
|
+
shake: y,
|
|
209
|
+
bounce: b,
|
|
210
|
+
flip: x,
|
|
211
|
+
notificationBounce: F,
|
|
212
|
+
springPop: J,
|
|
213
|
+
springWobble: Y
|
|
214
|
+
}, $ = {
|
|
215
|
+
heartbeat: w,
|
|
216
|
+
glow: T,
|
|
217
|
+
spinner: I,
|
|
218
|
+
rainbowText: D,
|
|
219
|
+
skeletonLoading: M,
|
|
220
|
+
gradientBackground: N,
|
|
221
|
+
parallaxScroll: L,
|
|
222
|
+
hover: H,
|
|
223
|
+
typingCursor: P
|
|
224
|
+
}, Fe = {
|
|
225
|
+
enter: X,
|
|
226
|
+
exit: Z,
|
|
227
|
+
attention: Q,
|
|
228
|
+
loop: $
|
|
229
|
+
}, Ie = /* @__PURE__ */ a({
|
|
230
|
+
accordionExpand: () => Oe,
|
|
231
|
+
attentionPresets: () => Q,
|
|
232
|
+
blurIn: () => A,
|
|
233
|
+
blurInOut: () => we,
|
|
234
|
+
blurOut: () => j,
|
|
235
|
+
bounce: () => b,
|
|
236
|
+
enterPresets: () => X,
|
|
237
|
+
exitPresets: () => Z,
|
|
238
|
+
fadeIn: () => g,
|
|
239
|
+
fadeOut: () => _,
|
|
240
|
+
flipPreset: () => x,
|
|
241
|
+
glow: () => T,
|
|
242
|
+
gradientBackground: () => N,
|
|
243
|
+
heartbeat: () => w,
|
|
244
|
+
hover: () => H,
|
|
245
|
+
jumpDown: () => W,
|
|
246
|
+
jumpUp: () => U,
|
|
247
|
+
loopPresets: () => $,
|
|
248
|
+
notificationBounce: () => F,
|
|
249
|
+
parallaxScroll: () => L,
|
|
250
|
+
presetTaxonomy: () => Fe,
|
|
251
|
+
progressBar: () => Te,
|
|
252
|
+
pulse: () => v,
|
|
253
|
+
rainbowText: () => D,
|
|
254
|
+
rotateIn: () => S,
|
|
255
|
+
rotateScale: () => De,
|
|
256
|
+
shake: () => y,
|
|
257
|
+
skeletonLoading: () => M,
|
|
258
|
+
slideIn: () => C,
|
|
259
|
+
slideInLeft: () => R,
|
|
260
|
+
slideInRight: () => B,
|
|
261
|
+
slideOutLeft: () => z,
|
|
262
|
+
slideOutRight: () => V,
|
|
263
|
+
spinner: () => I,
|
|
264
|
+
springPop: () => J,
|
|
265
|
+
springScaleIn: () => K,
|
|
266
|
+
springSlideIn: () => q,
|
|
267
|
+
springWobble: () => Y,
|
|
268
|
+
textFocusBlur: () => Ee,
|
|
269
|
+
typewriter: () => E,
|
|
270
|
+
typingCursor: () => P,
|
|
271
|
+
warpLeft: () => O,
|
|
272
|
+
warpRight: () => k
|
|
273
|
+
});
|
|
274
|
+
//#endregion
|
|
275
|
+
export { a as n, Ie as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./presets-
|
|
1
|
+
import { n as e } from "./presets-DeDJYL4G.js";
|
|
2
2
|
//#region src/animation/internal/scheduler.ts
|
|
3
3
|
var t = /* @__PURE__ */ e({ yieldToMain: () => i }), n = null, r = () => typeof MessageChannel == "function" ? () => new Promise((e) => {
|
|
4
4
|
let t = new MessageChannel();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./presets-
|
|
2
|
-
import { c as t, f as n, i as r, r as i, s as a } from "./sequence-
|
|
3
|
-
import { i as o, r as s, t as c } from "./delegation-
|
|
4
|
-
import {
|
|
1
|
+
import { n as e } from "./presets-DeDJYL4G.js";
|
|
2
|
+
import { c as t, f as n, i as r, r as i, s as a } from "./sequence-s0bL7Uul.js";
|
|
3
|
+
import { i as o, r as s, t as c } from "./delegation-BQYCrP2p.js";
|
|
4
|
+
import { extractTimelineOptions as l, parseAnimationRange as u, parseAnimationTimeline as d, parseCSSStylesheet as f, serializeTimelineOptions as p } from "@mkbabb/value.js";
|
|
5
5
|
//#region src/animation/scroll/range.ts
|
|
6
6
|
var m = {
|
|
7
7
|
entry: o.entry,
|
|
@@ -58,47 +58,7 @@ function _(e) {
|
|
|
58
58
|
}
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/animation/scroll/scene.ts
|
|
61
|
-
|
|
62
|
-
let { animation: t, nativeSpec: n, scrub: i, snap: a, velocity: o } = e;
|
|
63
|
-
if (i) return {
|
|
64
|
-
backend: "js",
|
|
65
|
-
reason: "scrub smoothing requested (native scroll has no SmoothProgress smoother)"
|
|
66
|
-
};
|
|
67
|
-
if (a) return {
|
|
68
|
-
backend: "js",
|
|
69
|
-
reason: "physics snap requested (native scroll has no decay/spring settle)"
|
|
70
|
-
};
|
|
71
|
-
if (o) return {
|
|
72
|
-
backend: "js",
|
|
73
|
-
reason: "scroll velocity / non-DOM driving requested (JS-only capability)"
|
|
74
|
-
};
|
|
75
|
-
if (t == null || n == null) return {
|
|
76
|
-
backend: "js",
|
|
77
|
-
reason: "non-DOM target or no native timeline spec (the universal JS driver)"
|
|
78
|
-
};
|
|
79
|
-
let l = s(t);
|
|
80
|
-
if (!l.eligible) return {
|
|
81
|
-
backend: "js",
|
|
82
|
-
reason: l.reason
|
|
83
|
-
};
|
|
84
|
-
if (r(n) == null) return {
|
|
85
|
-
backend: "js",
|
|
86
|
-
reason: "native scroll/view timeline unavailable (feature absent)"
|
|
87
|
-
};
|
|
88
|
-
let u = c(t, n);
|
|
89
|
-
return u.attached ? {
|
|
90
|
-
backend: "native",
|
|
91
|
-
attachment: u
|
|
92
|
-
} : {
|
|
93
|
-
backend: "js",
|
|
94
|
-
reason: u.reason
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function y(e) {
|
|
98
|
-
let t = ["position: sticky;"];
|
|
99
|
-
return e?.bottom == null ? t.push(`top: ${e?.top ?? 0}px;`) : t.push(`bottom: ${e.bottom}px;`), t.join(" ");
|
|
100
|
-
}
|
|
101
|
-
var b = class {
|
|
61
|
+
var v = class {
|
|
102
62
|
resolvedRange;
|
|
103
63
|
snapPoints;
|
|
104
64
|
snapSpring;
|
|
@@ -159,22 +119,169 @@ var b = class {
|
|
|
159
119
|
for (let n of this.subscribers.get(e)) n(t);
|
|
160
120
|
}
|
|
161
121
|
};
|
|
162
|
-
function
|
|
163
|
-
return new
|
|
122
|
+
function y(e = {}) {
|
|
123
|
+
return new v(e);
|
|
124
|
+
}
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/animation/scroll/dispatch.ts
|
|
127
|
+
function b(e) {
|
|
128
|
+
let { animation: t, nativeSpec: n, scrub: i, snap: a, velocity: o } = e;
|
|
129
|
+
if (i) return {
|
|
130
|
+
backend: "js",
|
|
131
|
+
reason: "scrub smoothing requested (native scroll has no SmoothProgress smoother)"
|
|
132
|
+
};
|
|
133
|
+
if (a) return {
|
|
134
|
+
backend: "js",
|
|
135
|
+
reason: "physics snap requested (native scroll has no decay/spring settle)"
|
|
136
|
+
};
|
|
137
|
+
if (o) return {
|
|
138
|
+
backend: "js",
|
|
139
|
+
reason: "scroll velocity / non-DOM driving requested (JS-only capability)"
|
|
140
|
+
};
|
|
141
|
+
if (t == null || n == null) return {
|
|
142
|
+
backend: "js",
|
|
143
|
+
reason: "non-DOM target or no native timeline spec (the universal JS driver)"
|
|
144
|
+
};
|
|
145
|
+
let l = s(t);
|
|
146
|
+
if (!l.eligible) return {
|
|
147
|
+
backend: "js",
|
|
148
|
+
reason: l.reason
|
|
149
|
+
};
|
|
150
|
+
if (r(n) == null) return {
|
|
151
|
+
backend: "js",
|
|
152
|
+
reason: "native scroll/view timeline unavailable (feature absent)"
|
|
153
|
+
};
|
|
154
|
+
let u = c(t, n);
|
|
155
|
+
return u.attached ? {
|
|
156
|
+
backend: "native",
|
|
157
|
+
attachment: u
|
|
158
|
+
} : {
|
|
159
|
+
backend: "js",
|
|
160
|
+
reason: u.reason
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function x(e) {
|
|
164
|
+
let t = ["position: sticky;"];
|
|
165
|
+
return e?.bottom == null ? t.push(`top: ${e?.top ?? 0}px;`) : t.push(`bottom: ${e.bottom}px;`), t.join(" ");
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/animation/scroll/trigger.ts
|
|
169
|
+
function S() {
|
|
170
|
+
let e = globalThis.CSS;
|
|
171
|
+
if (e == null || typeof e.supports != "function") return !1;
|
|
172
|
+
try {
|
|
173
|
+
return e.supports("animation-trigger-behavior", "once") || e.supports("animation-trigger", "once");
|
|
174
|
+
} catch {
|
|
175
|
+
return !1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
var C = class {
|
|
179
|
+
type;
|
|
180
|
+
triggerRange;
|
|
181
|
+
_state = "idle";
|
|
182
|
+
_direction = "forward";
|
|
183
|
+
_playhead = 0;
|
|
184
|
+
_cycles = 0;
|
|
185
|
+
wasInside = !1;
|
|
186
|
+
everEntered = !1;
|
|
187
|
+
constructor(e = {}) {
|
|
188
|
+
this.type = e.type ?? "once", this.triggerRange = _(e.range);
|
|
189
|
+
}
|
|
190
|
+
get state() {
|
|
191
|
+
return this._state;
|
|
192
|
+
}
|
|
193
|
+
get direction() {
|
|
194
|
+
return this._direction;
|
|
195
|
+
}
|
|
196
|
+
get playhead() {
|
|
197
|
+
return this._playhead;
|
|
198
|
+
}
|
|
199
|
+
get cycles() {
|
|
200
|
+
return this._cycles;
|
|
201
|
+
}
|
|
202
|
+
get range() {
|
|
203
|
+
return this.triggerRange;
|
|
204
|
+
}
|
|
205
|
+
get usesNative() {
|
|
206
|
+
return S();
|
|
207
|
+
}
|
|
208
|
+
triggerProgress(e) {
|
|
209
|
+
let t = n(e, 0, 1), { start: r, end: i } = this.triggerRange, a = i - r, o = a > 0 ? n((t - r) / a, 0, 1) : 0, s = t >= r && t <= i, c = s && !this.wasInside, l = !s && this.wasInside, u = l && t > i;
|
|
210
|
+
switch (this.type) {
|
|
211
|
+
case "repeat":
|
|
212
|
+
this.stepRepeat(s, c, l, o);
|
|
213
|
+
break;
|
|
214
|
+
case "alternate":
|
|
215
|
+
this.stepAlternate(s, c, l, o);
|
|
216
|
+
break;
|
|
217
|
+
case "state":
|
|
218
|
+
this.stepState(s, o);
|
|
219
|
+
break;
|
|
220
|
+
default:
|
|
221
|
+
this.stepOnce(c, u, o);
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
return this.wasInside = s, this._state;
|
|
225
|
+
}
|
|
226
|
+
reset() {
|
|
227
|
+
this._state = "idle", this._direction = "forward", this._playhead = 0, this._cycles = 0, this.wasInside = !1, this.everEntered = !1;
|
|
228
|
+
}
|
|
229
|
+
stepOnce(e, t, n) {
|
|
230
|
+
this._state !== "done" && (e && this._state === "idle" && (this._state = "active", this._direction = "forward", this._cycles = 1), this._state === "active" && (this._playhead = n, t && (this._state = "done", this._playhead = 1)));
|
|
231
|
+
}
|
|
232
|
+
stepRepeat(e, t, n, r) {
|
|
233
|
+
t ? (this._state = "active", this._direction = "forward", this._cycles += 1, this._playhead = r) : n ? (this._state = "idle", this._playhead = 0) : e && (this._playhead = r);
|
|
234
|
+
}
|
|
235
|
+
stepAlternate(e, t, n, r) {
|
|
236
|
+
t ? (this._direction = this._cycles % 2 == 0 ? "forward" : "backward", this._state = "active", this._cycles += 1, this._playhead = this.directedPlayhead(r)) : n ? this._state = "done" : e && (this._playhead = this.directedPlayhead(r));
|
|
237
|
+
}
|
|
238
|
+
stepState(e, t) {
|
|
239
|
+
e ? (this._state = "active", this._direction = "forward", this._playhead = t, this.everEntered = !0) : this._state = this.everEntered ? "done" : "idle";
|
|
240
|
+
}
|
|
241
|
+
directedPlayhead(e) {
|
|
242
|
+
return this._direction === "forward" ? e : 1 - e;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
function w(e = {}) {
|
|
246
|
+
return new C("trigger" in e && e.trigger != null ? e.trigger : e);
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/animation/scroll/grammar.ts
|
|
250
|
+
function T(e) {
|
|
251
|
+
return d(e);
|
|
252
|
+
}
|
|
253
|
+
function E(e) {
|
|
254
|
+
return u(e);
|
|
255
|
+
}
|
|
256
|
+
function D(e) {
|
|
257
|
+
return l(typeof e == "string" ? f(e) : e);
|
|
258
|
+
}
|
|
259
|
+
function O(e) {
|
|
260
|
+
return p(e);
|
|
261
|
+
}
|
|
262
|
+
function k(e) {
|
|
263
|
+
let t = D(e);
|
|
264
|
+
return {
|
|
265
|
+
options: t,
|
|
266
|
+
declarations: O(t)
|
|
267
|
+
};
|
|
164
268
|
}
|
|
165
269
|
//#endregion
|
|
166
270
|
//#region src/animation/scroll/index.ts
|
|
167
|
-
var
|
|
168
|
-
ScrollScene: () =>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
271
|
+
var A = /* @__PURE__ */ e({
|
|
272
|
+
ScrollScene: () => v,
|
|
273
|
+
TriggerScene: () => C,
|
|
274
|
+
createScrollScene: () => y,
|
|
275
|
+
createTriggerScene: () => w,
|
|
276
|
+
dispatchScrollBackend: () => b,
|
|
277
|
+
parseScrollCSS: () => D,
|
|
278
|
+
parseScrollRange: () => E,
|
|
279
|
+
parseScrollTimeline: () => T,
|
|
280
|
+
pinCSS: () => x,
|
|
175
281
|
resolveRange: () => _,
|
|
176
|
-
roundTripScrollCSS: () =>
|
|
177
|
-
serializeScrollOptions: () =>
|
|
282
|
+
roundTripScrollCSS: () => k,
|
|
283
|
+
serializeScrollOptions: () => O,
|
|
284
|
+
supportsNativeTrigger: () => S
|
|
178
285
|
});
|
|
179
286
|
//#endregion
|
|
180
|
-
export {
|
|
287
|
+
export { k as a, w as c, x as d, v as f, T as i, S as l, _ as m, D as n, O as o, y as p, E as r, C as s, A as t, b as u };
|