@mkbabb/keyframes.js 5.0.0 → 5.1.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 +31 -216
- package/dist/animation-BGyzfzBq.js +947 -0
- package/dist/compile-CcSUwM8R.js +276 -0
- package/dist/{waapi-D0ssxKy1.js → delegation-DWwr4IXr.js} +115 -93
- package/dist/{draw-svg-Dat9mHgi.js → draw-svg-GURj9nin.js} +17 -13
- package/dist/easing-registry-DHV2-5gA.js +27 -0
- package/dist/easing-registry-y1p9McFy.js +2 -0
- package/dist/engine/index.d.ts +2873 -0
- package/dist/engine/index.js +17 -0
- package/dist/engine-DEVgCTUy.js +156 -0
- package/dist/engine-DrBtsKaf.js +4 -0
- package/dist/{format-BUgCTjmr.js → format-C-Gi9r7L.js} +4 -4
- package/dist/{scroll-grammar-B4kPvGh5.js → grammar-BLucehC4.js} +1 -1
- package/dist/group-vJcsHKN9.js +360 -0
- package/dist/{ingest-CU-kdYcM.js → ingest-S5hUe20K.js} +62 -56
- package/dist/keyframes.d.ts +475 -942
- package/dist/keyframes.js +196 -137
- package/dist/morph-svg-BToeumw5.js +89 -0
- package/dist/{motion-path-C0OHqcA3.js → motion-path-pQVbamWT.js} +16 -12
- package/dist/parse-flatten-DRMHFytp.js +2 -0
- package/dist/parse-flatten-ZZUSEQEL.js +63 -0
- package/dist/{animations-CZxf0rep.js → presets-BG2Fczzq.js} +124 -73
- package/dist/{scheduler-7eIr_q1g.js → scheduler-CUtVnuoU.js} +1 -1
- package/dist/{scroll-scene-DQxhxn9I.js → scroll-CxpYFO4u.js} +50 -46
- package/dist/sequence-C_DCiOIQ.js +708 -0
- package/dist/validate-DDeGnvSt.js +39 -0
- package/package.json +12 -3
- package/dist/animate-CTWr6K7j.js +0 -26
- package/dist/compile-YRJRdpKF.js +0 -251
- package/dist/decay-BvNmFk51.js +0 -25
- package/dist/engine-DQcb7CLW.js +0 -1349
- package/dist/errors-W8zkvPw4.js +0 -21
- package/dist/morph-svg-83uyYxoW.js +0 -84
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/sequence-cBr7thU8.js +0 -198
- package/dist/springTimingFunction-D26gPkAy.js +0 -63
- package/dist/timeline-vY3eD3Ax.js +0 -430
- package/dist/utils-BPRImVl5.js +0 -100
- package/dist/validate-B1pE-Y_T.js +0 -35
|
@@ -1,224 +1,275 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as e } from "./sequence-C_DCiOIQ.js";
|
|
2
|
+
import { t } from "./engine-DEVgCTUy.js";
|
|
3
3
|
import { CSSCubicBezier as n, steppedEase as r } from "@mkbabb/value.js";
|
|
4
|
-
//#region
|
|
5
|
-
var
|
|
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", o = (e) => new t({
|
|
6
13
|
duration: 700,
|
|
7
14
|
timingFunction: "ease-in-out",
|
|
8
15
|
...e ?? {}
|
|
9
|
-
}).fromString(ee), te = "\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n",
|
|
16
|
+
}).fromString(ee), te = "\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n", s = (e) => new t({
|
|
10
17
|
duration: 700,
|
|
11
18
|
timingFunction: "ease-in-out",
|
|
12
19
|
...e ?? {}
|
|
13
|
-
}).fromString(te), ne = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n",
|
|
20
|
+
}).fromString(te), ne = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.05);\n }\n", c = (e) => new t({
|
|
14
21
|
duration: 1e3,
|
|
15
22
|
timingFunction: "ease-in-out",
|
|
16
23
|
iterationCount: Infinity,
|
|
17
24
|
...e ?? {}
|
|
18
|
-
}).fromString(ne), 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",
|
|
25
|
+
}).fromString(ne), 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", l = (e) => new t({
|
|
19
26
|
duration: 820,
|
|
20
27
|
timingFunction: "ease-in-out",
|
|
21
28
|
...e ?? {}
|
|
22
|
-
}).fromString(re),
|
|
29
|
+
}).fromString(re), u = "\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", d = (e) => new t({
|
|
23
30
|
duration: 1e3,
|
|
24
31
|
timingFunction: n(.28, .84, .42, 1),
|
|
25
32
|
...e ?? {}
|
|
26
|
-
}).fromString(
|
|
33
|
+
}).fromString(u), ie = "\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", f = (e) => new t({
|
|
27
34
|
duration: 1e3,
|
|
28
35
|
timingFunction: "ease-in-out",
|
|
29
36
|
...e ?? {}
|
|
30
|
-
}).fromString(ie), ae = "\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",
|
|
37
|
+
}).fromString(ie), ae = "\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", p = (e) => new t({
|
|
31
38
|
duration: 1e3,
|
|
32
39
|
timingFunction: n(.25, .46, .45, .94),
|
|
33
40
|
...e ?? {}
|
|
34
|
-
}).fromString(ae), oe = "\n 0% {\n transform: translateY(1000px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n",
|
|
41
|
+
}).fromString(ae), oe = "\n 0% {\n transform: translateY(1000px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", m = (e) => new t({
|
|
35
42
|
duration: 1e3,
|
|
36
43
|
timingFunction: n(.25, .46, .45, .94),
|
|
37
44
|
...e ?? {}
|
|
38
|
-
}).fromString(oe),
|
|
45
|
+
}).fromString(oe), h = "\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", g = (e) => new t({
|
|
39
46
|
duration: 1500,
|
|
40
47
|
timingFunction: "ease-in-out",
|
|
41
48
|
iterationCount: Infinity,
|
|
42
49
|
...e ?? {}
|
|
43
|
-
}).fromString(
|
|
50
|
+
}).fromString(h), se = "\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", _ = (e) => new t({
|
|
44
51
|
duration: 2e3,
|
|
45
52
|
timingFunction: "ease-in-out",
|
|
46
53
|
iterationCount: Infinity,
|
|
47
54
|
...e ?? {}
|
|
48
|
-
}).fromString(
|
|
55
|
+
}).fromString(se), ce = "\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n", le = (e) => new t({
|
|
49
56
|
duration: 3e3,
|
|
50
57
|
timingFunction: r(40, "jump-end"),
|
|
51
58
|
fillMode: "forwards",
|
|
52
59
|
...e ?? {}
|
|
53
|
-
}).fromString(
|
|
60
|
+
}).fromString(ce), ue = "\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", v = (e) => new t({
|
|
54
61
|
duration: 5e3,
|
|
55
62
|
timingFunction: "linear",
|
|
56
63
|
iterationCount: Infinity,
|
|
57
64
|
...e ?? {}
|
|
58
|
-
}).fromString(
|
|
65
|
+
}).fromString(ue), de = "@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}", y = (e) => new t({
|
|
59
66
|
duration: 700,
|
|
60
67
|
timingFunction: "bounce-in-ease",
|
|
61
68
|
...e ?? {}
|
|
62
|
-
}).fromString(
|
|
69
|
+
}).fromString(de), fe = "@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}", b = (e) => new t({
|
|
63
70
|
duration: 700,
|
|
64
71
|
timingFunction: "bounce-in-ease",
|
|
65
72
|
...e ?? {}
|
|
66
|
-
}).fromString(
|
|
73
|
+
}).fromString(fe), pe = "\n0% {\n filter: blur(10px);\n opacity: 0;\n}\n100% {\n filter: blur(0px);\n opacity: 1;\n}\n", x = (e) => new t({
|
|
67
74
|
duration: 2e3,
|
|
68
75
|
timingFunction: "ease-in-out",
|
|
69
76
|
...e ?? {}
|
|
70
|
-
}).fromString(
|
|
77
|
+
}).fromString(pe), me = "\n0% {\n filter: blur(0px);\n opacity: 1;\n}\n100% {\n filter: blur(10px);\n opacity: 0;\n}\n", S = (e) => new t({
|
|
71
78
|
duration: 2e3,
|
|
72
79
|
timingFunction: "ease-in-out",
|
|
73
80
|
...e ?? {}
|
|
74
|
-
}).fromString(
|
|
81
|
+
}).fromString(me), he = "\n0% {\n filter: blur(0px);\n}\n50% {\n filter: blur(10px);\n}\n100% {\n filter: blur(0px);\n}\n", ge = (e) => new t({
|
|
75
82
|
duration: 2e3,
|
|
76
83
|
timingFunction: "ease-in-out",
|
|
77
84
|
...e ?? {}
|
|
78
|
-
}).fromString(
|
|
85
|
+
}).fromString(he), _e = "\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", ve = (e) => new t({
|
|
79
86
|
duration: 3e3,
|
|
80
87
|
timingFunction: "linear",
|
|
81
88
|
fillMode: "forwards",
|
|
82
89
|
...e ?? {}
|
|
83
|
-
}).fromString(
|
|
90
|
+
}).fromString(_e), ye = "\n0% {\n background-position: -200% 0;\n}\n100% {\n background-position: 200% 0;\n}\n", C = (e) => new t({
|
|
84
91
|
duration: 1500,
|
|
85
92
|
timingFunction: "linear",
|
|
86
93
|
iterationCount: Infinity,
|
|
87
94
|
...e ?? {}
|
|
88
|
-
}).fromString(
|
|
95
|
+
}).fromString(ye), be = "\n0%, 100% {\n filter: blur(0px);\n opacity: 1;\n}\n50% {\n filter: blur(4px);\n opacity: 0.5;\n}\n", w = (e) => new t({
|
|
89
96
|
duration: 2e3,
|
|
90
97
|
timingFunction: "ease-in-out",
|
|
91
98
|
...e ?? {}
|
|
92
|
-
}).fromString(
|
|
99
|
+
}).fromString(be), T = "\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n", E = (e) => new t({
|
|
93
100
|
duration: 5e3,
|
|
94
101
|
timingFunction: "ease-in-out",
|
|
95
102
|
iterationCount: Infinity,
|
|
96
103
|
...e ?? {}
|
|
97
|
-
}).fromString(
|
|
104
|
+
}).fromString(T), D = "\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", O = (e) => new t({
|
|
98
105
|
duration: 2500,
|
|
99
106
|
timingFunction: n(.68, -.55, .265, 1.55),
|
|
100
107
|
...e ?? {}
|
|
101
|
-
}).fromString(
|
|
108
|
+
}).fromString(D), k = "\n0%, 100% {\n border-right-color: transparent;\n}\n50% {\n border-right-color: black;\n}\n", A = (e) => new t({
|
|
102
109
|
duration: 800,
|
|
103
110
|
timingFunction: r(2, "jump-start"),
|
|
104
111
|
iterationCount: Infinity,
|
|
105
112
|
...e ?? {}
|
|
106
|
-
}).fromString(
|
|
113
|
+
}).fromString(k), j = "\n0% {\n max-height: 0;\n opacity: 0;\n}\n100% {\n max-height: 1000px;\n opacity: 1;\n}\n", M = (e) => new t({
|
|
107
114
|
duration: 500,
|
|
108
115
|
timingFunction: n(.25, .46, .45, .94),
|
|
109
116
|
fillMode: "forwards",
|
|
110
117
|
...e ?? {}
|
|
111
|
-
}).fromString(
|
|
118
|
+
}).fromString(j), N = "\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", P = (e) => new t({
|
|
112
119
|
duration: 1e3,
|
|
113
120
|
timingFunction: n(.28, .84, .42, 1),
|
|
114
121
|
...e ?? {}
|
|
115
|
-
}).fromString(
|
|
122
|
+
}).fromString(N), xe = "\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", F = (e) => new t({
|
|
116
123
|
duration: 2e3,
|
|
117
124
|
timingFunction: "linear",
|
|
118
125
|
iterationCount: Infinity,
|
|
119
126
|
...e ?? {}
|
|
120
|
-
}).fromString(
|
|
127
|
+
}).fromString(xe), Se = "\n0% {\n background-position: 50% 0%;\n}\n100% {\n background-position: 50% 100%;\n}\n", I = (e) => new t({
|
|
121
128
|
duration: 1e4,
|
|
122
129
|
timingFunction: "linear",
|
|
123
130
|
iterationCount: Infinity,
|
|
124
131
|
...e ?? {}
|
|
125
|
-
}).fromString(Se),
|
|
132
|
+
}).fromString(Se), Ce = "\n0% {\n transform: translateX(-100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", L = (e) => new t({
|
|
126
133
|
duration: 1e3,
|
|
127
134
|
timingFunction: n(.25, .46, .45, .94),
|
|
128
135
|
...e ?? {}
|
|
129
|
-
}).fromString(
|
|
136
|
+
}).fromString(Ce), we = "\n0% {\n transform: translateX(0);\n opacity: 1;\n}\n100% {\n transform: translateX(-100%);\n opacity: 0;\n}\n", R = (e) => new t({
|
|
130
137
|
duration: 1e3,
|
|
131
138
|
timingFunction: n(.25, .46, .45, .94),
|
|
132
139
|
...e ?? {}
|
|
133
|
-
}).fromString(
|
|
140
|
+
}).fromString(we), Te = "\n0% {\n transform: translateX(100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", z = (e) => new t({
|
|
134
141
|
duration: 1e3,
|
|
135
142
|
timingFunction: n(.25, .46, .45, .94),
|
|
136
143
|
...e ?? {}
|
|
137
|
-
}).fromString(
|
|
144
|
+
}).fromString(Te), Ee = "\n0% {\n transform: translateX(0%);\n opacity: 1;\n\n}\n100% {\n transform: translateX(100%);\n opacity: 0;\n}\n", B = (e) => new t({
|
|
138
145
|
duration: 1e3,
|
|
139
146
|
timingFunction: n(.25, .46, .45, .94),
|
|
140
147
|
...e ?? {}
|
|
141
|
-
}).fromString(
|
|
148
|
+
}).fromString(Ee), De = "\n0% {\n transform: translateY(0px);\n}\n50% {\n transform: translateY(5px);\n}\n100% {\n transform: translateY(0px);\n}\n", V = (e) => new t({
|
|
142
149
|
duration: 3e3,
|
|
143
150
|
timingFunction: "ease-in-out",
|
|
144
151
|
iterationCount: Infinity,
|
|
145
152
|
fillMode: "none",
|
|
146
153
|
direction: "alternate",
|
|
147
154
|
...e ?? {}
|
|
148
|
-
}).fromString(
|
|
155
|
+
}).fromString(De), Oe = "@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}", H = (e) => new t({
|
|
149
156
|
duration: 700,
|
|
150
157
|
timingFunction: "bounce-in-ease",
|
|
151
158
|
...e ?? {}
|
|
152
|
-
}).fromString(
|
|
159
|
+
}).fromString(Oe), ke = "@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}", U = (e) => new t({
|
|
153
160
|
duration: 700,
|
|
154
161
|
timingFunction: "bounce-in-ease",
|
|
155
162
|
...e ?? {}
|
|
156
|
-
}).fromString(
|
|
163
|
+
}).fromString(ke), Ae = {
|
|
157
164
|
response: .35,
|
|
158
165
|
dampingFraction: .78
|
|
159
166
|
}, W = {
|
|
160
167
|
response: .5,
|
|
161
168
|
dampingFraction: .5
|
|
162
|
-
},
|
|
169
|
+
}, je = {
|
|
163
170
|
response: .7,
|
|
164
171
|
dampingFraction: .95
|
|
165
|
-
},
|
|
172
|
+
}, Me = "\n 0% {\n transform: scale(0.6);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n", G = (n) => new t({
|
|
166
173
|
duration: 600,
|
|
167
174
|
timingFunction: e(W),
|
|
168
175
|
...n ?? {}
|
|
169
|
-
}).fromString(
|
|
176
|
+
}).fromString(Me), Ne = "\n 0% {\n transform: translateY(40px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n", K = (n) => new t({
|
|
170
177
|
duration: 600,
|
|
171
|
-
timingFunction: e(
|
|
178
|
+
timingFunction: e(Ae),
|
|
172
179
|
...n ?? {}
|
|
173
|
-
}).fromString(
|
|
180
|
+
}).fromString(Ne), q = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.15);\n }\n", J = (n) => new t({
|
|
174
181
|
duration: 700,
|
|
175
182
|
timingFunction: e(W),
|
|
176
183
|
...n ?? {}
|
|
177
|
-
}).fromString(
|
|
184
|
+
}).fromString(q), Pe = "\n 0%, 100% {\n transform: rotate(0deg);\n }\n 50% {\n transform: rotate(8deg);\n }\n", Y = (n) => new t({
|
|
178
185
|
duration: 800,
|
|
179
|
-
timingFunction: e(
|
|
186
|
+
timingFunction: e(je),
|
|
180
187
|
...n ?? {}
|
|
181
|
-
}).fromString(
|
|
182
|
-
fadeIn:
|
|
183
|
-
slideIn:
|
|
184
|
-
slideInLeft:
|
|
188
|
+
}).fromString(Pe), X = {
|
|
189
|
+
fadeIn: o,
|
|
190
|
+
slideIn: m,
|
|
191
|
+
slideInLeft: L,
|
|
185
192
|
slideInRight: z,
|
|
186
|
-
rotateIn:
|
|
187
|
-
blurIn:
|
|
193
|
+
rotateIn: p,
|
|
194
|
+
blurIn: x,
|
|
188
195
|
springScaleIn: G,
|
|
189
196
|
springSlideIn: K,
|
|
190
197
|
jumpUp: H
|
|
191
198
|
}, Z = {
|
|
192
|
-
fadeOut:
|
|
193
|
-
slideOutLeft:
|
|
199
|
+
fadeOut: s,
|
|
200
|
+
slideOutLeft: R,
|
|
194
201
|
slideOutRight: B,
|
|
195
|
-
blurOut:
|
|
196
|
-
warpLeft:
|
|
197
|
-
warpRight:
|
|
202
|
+
blurOut: S,
|
|
203
|
+
warpLeft: y,
|
|
204
|
+
warpRight: b,
|
|
198
205
|
jumpDown: U
|
|
199
206
|
}, Q = {
|
|
200
|
-
pulse:
|
|
201
|
-
shake:
|
|
202
|
-
bounce:
|
|
203
|
-
flip:
|
|
204
|
-
notificationBounce:
|
|
205
|
-
springPop:
|
|
207
|
+
pulse: c,
|
|
208
|
+
shake: l,
|
|
209
|
+
bounce: d,
|
|
210
|
+
flip: f,
|
|
211
|
+
notificationBounce: P,
|
|
212
|
+
springPop: J,
|
|
206
213
|
springWobble: Y
|
|
207
214
|
}, $ = {
|
|
208
|
-
heartbeat:
|
|
209
|
-
glow:
|
|
210
|
-
spinner:
|
|
211
|
-
rainbowText:
|
|
212
|
-
skeletonLoading:
|
|
213
|
-
gradientBackground:
|
|
214
|
-
parallaxScroll:
|
|
215
|
+
heartbeat: g,
|
|
216
|
+
glow: _,
|
|
217
|
+
spinner: F,
|
|
218
|
+
rainbowText: v,
|
|
219
|
+
skeletonLoading: C,
|
|
220
|
+
gradientBackground: E,
|
|
221
|
+
parallaxScroll: I,
|
|
215
222
|
hover: V,
|
|
216
|
-
typingCursor:
|
|
217
|
-
},
|
|
223
|
+
typingCursor: A
|
|
224
|
+
}, Fe = {
|
|
218
225
|
enter: X,
|
|
219
226
|
exit: Z,
|
|
220
227
|
attention: Q,
|
|
221
228
|
loop: $
|
|
222
|
-
}
|
|
229
|
+
}, Ie = /* @__PURE__ */ a({
|
|
230
|
+
accordionExpand: () => M,
|
|
231
|
+
attentionPresets: () => Q,
|
|
232
|
+
blurIn: () => x,
|
|
233
|
+
blurInOut: () => ge,
|
|
234
|
+
blurOut: () => S,
|
|
235
|
+
bounce: () => d,
|
|
236
|
+
enterPresets: () => X,
|
|
237
|
+
exitPresets: () => Z,
|
|
238
|
+
fadeIn: () => o,
|
|
239
|
+
fadeOut: () => s,
|
|
240
|
+
flipPreset: () => f,
|
|
241
|
+
glow: () => _,
|
|
242
|
+
gradientBackground: () => E,
|
|
243
|
+
heartbeat: () => g,
|
|
244
|
+
hover: () => V,
|
|
245
|
+
jumpDown: () => U,
|
|
246
|
+
jumpUp: () => H,
|
|
247
|
+
loopPresets: () => $,
|
|
248
|
+
notificationBounce: () => P,
|
|
249
|
+
parallaxScroll: () => I,
|
|
250
|
+
presetTaxonomy: () => Fe,
|
|
251
|
+
progressBar: () => ve,
|
|
252
|
+
pulse: () => c,
|
|
253
|
+
rainbowText: () => v,
|
|
254
|
+
rotateIn: () => p,
|
|
255
|
+
rotateScale: () => O,
|
|
256
|
+
shake: () => l,
|
|
257
|
+
skeletonLoading: () => C,
|
|
258
|
+
slideIn: () => m,
|
|
259
|
+
slideInLeft: () => L,
|
|
260
|
+
slideInRight: () => z,
|
|
261
|
+
slideOutLeft: () => R,
|
|
262
|
+
slideOutRight: () => B,
|
|
263
|
+
spinner: () => F,
|
|
264
|
+
springPop: () => J,
|
|
265
|
+
springScaleIn: () => G,
|
|
266
|
+
springSlideIn: () => K,
|
|
267
|
+
springWobble: () => Y,
|
|
268
|
+
textFocusBlur: () => w,
|
|
269
|
+
typewriter: () => le,
|
|
270
|
+
typingCursor: () => A,
|
|
271
|
+
warpLeft: () => y,
|
|
272
|
+
warpRight: () => b
|
|
273
|
+
});
|
|
223
274
|
//#endregion
|
|
224
|
-
export {
|
|
275
|
+
export { a as n, Ie as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./presets-BG2Fczzq.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,29 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as i } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
//#region src/animation/scroll
|
|
6
|
-
var
|
|
1
|
+
import { n as e } from "./presets-BG2Fczzq.js";
|
|
2
|
+
import { c as t, f as n, i as r, r as i, s as a } from "./sequence-C_DCiOIQ.js";
|
|
3
|
+
import { i as o, r as s, t as c } from "./delegation-DWwr4IXr.js";
|
|
4
|
+
import { a as l, i as u, n as d, r as f, t as p } from "./grammar-BLucehC4.js";
|
|
5
|
+
//#region src/animation/scroll/range.ts
|
|
6
|
+
var m = {
|
|
7
|
+
entry: o.entry,
|
|
8
|
+
cover: o.cover,
|
|
9
|
+
contain: o.contain,
|
|
10
|
+
exit: o.exit,
|
|
7
11
|
normal: {
|
|
8
12
|
start: 0,
|
|
9
13
|
end: 1
|
|
10
14
|
},
|
|
11
|
-
cover: {
|
|
12
|
-
start: .25,
|
|
13
|
-
end: .75
|
|
14
|
-
},
|
|
15
|
-
contain: {
|
|
16
|
-
start: .375,
|
|
17
|
-
end: .625
|
|
18
|
-
},
|
|
19
|
-
entry: {
|
|
20
|
-
start: 0,
|
|
21
|
-
end: .25
|
|
22
|
-
},
|
|
23
|
-
exit: {
|
|
24
|
-
start: .75,
|
|
25
|
-
end: 1
|
|
26
|
-
},
|
|
27
15
|
"entry-crossing": {
|
|
28
16
|
start: 0,
|
|
29
17
|
end: .25
|
|
@@ -33,7 +21,7 @@ var f = {
|
|
|
33
21
|
end: 1
|
|
34
22
|
}
|
|
35
23
|
};
|
|
36
|
-
function
|
|
24
|
+
function h(e) {
|
|
37
25
|
if (e == null) return null;
|
|
38
26
|
let t = e.trim();
|
|
39
27
|
if (t.endsWith("%")) {
|
|
@@ -42,24 +30,24 @@ function p(e) {
|
|
|
42
30
|
}
|
|
43
31
|
return null;
|
|
44
32
|
}
|
|
45
|
-
function
|
|
33
|
+
function g(e, t) {
|
|
46
34
|
if (e == null) return t;
|
|
47
|
-
let n =
|
|
35
|
+
let n = h(e.offset);
|
|
48
36
|
if (n != null) {
|
|
49
37
|
if (e.phase != null && e.phase !== "normal") {
|
|
50
|
-
let t =
|
|
38
|
+
let t = m[e.phase];
|
|
51
39
|
return t.start + n * (t.end - t.start);
|
|
52
40
|
}
|
|
53
41
|
return n;
|
|
54
42
|
}
|
|
55
|
-
return e.phase == null ? t :
|
|
43
|
+
return e.phase == null ? t : m[e.phase].start;
|
|
56
44
|
}
|
|
57
|
-
function
|
|
45
|
+
function _(e) {
|
|
58
46
|
if (e == null) return {
|
|
59
47
|
start: 0,
|
|
60
48
|
end: 1
|
|
61
49
|
};
|
|
62
|
-
let t =
|
|
50
|
+
let t = g(e.start, 0), n = g(e.end, 1);
|
|
63
51
|
return n > t ? {
|
|
64
52
|
start: t,
|
|
65
53
|
end: n
|
|
@@ -68,17 +56,19 @@ function h(e) {
|
|
|
68
56
|
end: 1
|
|
69
57
|
};
|
|
70
58
|
}
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/animation/scroll/scene.ts
|
|
61
|
+
function v(e) {
|
|
62
|
+
let { animation: t, nativeSpec: n, scrub: i, snap: a, velocity: o } = e;
|
|
73
63
|
if (i) return {
|
|
74
64
|
backend: "js",
|
|
75
65
|
reason: "scrub smoothing requested (native scroll has no SmoothProgress smoother)"
|
|
76
66
|
};
|
|
77
|
-
if (
|
|
67
|
+
if (a) return {
|
|
78
68
|
backend: "js",
|
|
79
69
|
reason: "physics snap requested (native scroll has no decay/spring settle)"
|
|
80
70
|
};
|
|
81
|
-
if (
|
|
71
|
+
if (o) return {
|
|
82
72
|
backend: "js",
|
|
83
73
|
reason: "scroll velocity / non-DOM driving requested (JS-only capability)"
|
|
84
74
|
};
|
|
@@ -86,7 +76,7 @@ function g(e) {
|
|
|
86
76
|
backend: "js",
|
|
87
77
|
reason: "non-DOM target or no native timeline spec (the universal JS driver)"
|
|
88
78
|
};
|
|
89
|
-
let l =
|
|
79
|
+
let l = s(t);
|
|
90
80
|
if (!l.eligible) return {
|
|
91
81
|
backend: "js",
|
|
92
82
|
reason: l.reason
|
|
@@ -95,7 +85,7 @@ function g(e) {
|
|
|
95
85
|
backend: "js",
|
|
96
86
|
reason: "native scroll/view timeline unavailable (feature absent)"
|
|
97
87
|
};
|
|
98
|
-
let u =
|
|
88
|
+
let u = c(t, n);
|
|
99
89
|
return u.attached ? {
|
|
100
90
|
backend: "native",
|
|
101
91
|
attachment: u
|
|
@@ -104,11 +94,11 @@ function g(e) {
|
|
|
104
94
|
reason: u.reason
|
|
105
95
|
};
|
|
106
96
|
}
|
|
107
|
-
function
|
|
97
|
+
function y(e) {
|
|
108
98
|
let t = ["position: sticky;"];
|
|
109
99
|
return e?.bottom == null ? t.push(`top: ${e?.top ?? 0}px;`) : t.push(`bottom: ${e.bottom}px;`), t.join(" ");
|
|
110
100
|
}
|
|
111
|
-
var
|
|
101
|
+
var b = class {
|
|
112
102
|
resolvedRange;
|
|
113
103
|
snapPoints;
|
|
114
104
|
snapSpring;
|
|
@@ -118,16 +108,16 @@ var v = class {
|
|
|
118
108
|
localProgress = 0;
|
|
119
109
|
wasInside = !1;
|
|
120
110
|
subscribers = new Map([["enter", /* @__PURE__ */ new Set()], ["leave", /* @__PURE__ */ new Set()]]);
|
|
121
|
-
constructor(
|
|
122
|
-
if (this.resolvedRange =
|
|
123
|
-
let
|
|
111
|
+
constructor(e = {}) {
|
|
112
|
+
if (this.resolvedRange = _(e.range), this.scrubSeconds = e.scrub ?? 0, this.snapPoints = e.snap != null && e.snap.length > 0 ? e.snap : void 0, this.scrubSeconds > 0) {
|
|
113
|
+
let r = n(1 / (this.scrubSeconds * 60 + 1), .01, 1);
|
|
124
114
|
this.smoother = new t({
|
|
125
|
-
damping:
|
|
115
|
+
damping: r,
|
|
126
116
|
clamp: !0,
|
|
127
|
-
...
|
|
117
|
+
...e.smoothing
|
|
128
118
|
});
|
|
129
119
|
}
|
|
130
|
-
this.snapPoints != null && (this.snapSpring = new
|
|
120
|
+
this.snapPoints != null && (this.snapSpring = new a({ ...e.snapSpring }));
|
|
131
121
|
}
|
|
132
122
|
get range() {
|
|
133
123
|
return this.resolvedRange;
|
|
@@ -169,8 +159,22 @@ var v = class {
|
|
|
169
159
|
for (let n of this.subscribers.get(e)) n(t);
|
|
170
160
|
}
|
|
171
161
|
};
|
|
172
|
-
function
|
|
173
|
-
return new
|
|
162
|
+
function x(e = {}) {
|
|
163
|
+
return new b(e);
|
|
174
164
|
}
|
|
175
165
|
//#endregion
|
|
176
|
-
|
|
166
|
+
//#region src/animation/scroll/index.ts
|
|
167
|
+
var S = /* @__PURE__ */ e({
|
|
168
|
+
ScrollScene: () => b,
|
|
169
|
+
createScrollScene: () => x,
|
|
170
|
+
dispatchScrollBackend: () => v,
|
|
171
|
+
parseScrollCSS: () => p,
|
|
172
|
+
parseScrollRange: () => d,
|
|
173
|
+
parseScrollTimeline: () => f,
|
|
174
|
+
pinCSS: () => y,
|
|
175
|
+
resolveRange: () => _,
|
|
176
|
+
roundTripScrollCSS: () => u,
|
|
177
|
+
serializeScrollOptions: () => l
|
|
178
|
+
});
|
|
179
|
+
//#endregion
|
|
180
|
+
export { y as a, v as i, b as n, _ as o, x as r, S as t };
|