@mkbabb/keyframes.js 4.4.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.
Files changed (39) hide show
  1. package/README.md +36 -221
  2. package/dist/animation-BGyzfzBq.js +947 -0
  3. package/dist/compile-CcSUwM8R.js +276 -0
  4. package/dist/{waapi-D9MHMm_9.js → delegation-DWwr4IXr.js} +116 -32
  5. package/dist/{draw-svg-DYRDxBlL.js → draw-svg-GURj9nin.js} +17 -13
  6. package/dist/easing-registry-DHV2-5gA.js +27 -0
  7. package/dist/easing-registry-y1p9McFy.js +2 -0
  8. package/dist/engine/index.d.ts +2873 -0
  9. package/dist/engine/index.js +17 -0
  10. package/dist/engine-DEVgCTUy.js +156 -0
  11. package/dist/engine-DrBtsKaf.js +4 -0
  12. package/dist/{format-BUgCTjmr.js → format-C-Gi9r7L.js} +4 -4
  13. package/dist/{scroll-grammar-B4kPvGh5.js → grammar-BLucehC4.js} +1 -1
  14. package/dist/group-vJcsHKN9.js +360 -0
  15. package/dist/{ingest-CNM5xkQT.js → ingest-S5hUe20K.js} +62 -56
  16. package/dist/keyframes.d.ts +585 -989
  17. package/dist/keyframes.js +188 -129
  18. package/dist/morph-svg-BToeumw5.js +89 -0
  19. package/dist/{motion-path-J-RSNmRQ.js → motion-path-pQVbamWT.js} +16 -12
  20. package/dist/parse-flatten-DRMHFytp.js +2 -0
  21. package/dist/parse-flatten-ZZUSEQEL.js +63 -0
  22. package/dist/{animations-5nf2kBkv.js → presets-BG2Fczzq.js} +124 -73
  23. package/dist/{scheduler-7eIr_q1g.js → scheduler-CUtVnuoU.js} +1 -1
  24. package/dist/{scroll-scene-CXEgM49Q.js → scroll-CxpYFO4u.js} +50 -46
  25. package/dist/sequence-C_DCiOIQ.js +708 -0
  26. package/dist/validate-DDeGnvSt.js +39 -0
  27. package/package.json +45 -6
  28. package/dist/animate-CuUJt2Tb.js +0 -26
  29. package/dist/compile-DgNRG6Lo.js +0 -251
  30. package/dist/decay-BvNmFk51.js +0 -25
  31. package/dist/engine-CNHvTgpw.js +0 -1122
  32. package/dist/errors-W8zkvPw4.js +0 -21
  33. package/dist/morph-svg-DRjl9Hfz.js +0 -62
  34. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  35. package/dist/sequence-CF5hazqz.js +0 -198
  36. package/dist/springTimingFunction-CDHZ00JQ.js +0 -63
  37. package/dist/timeline-B7SV3T_E.js +0 -442
  38. package/dist/utils-D7nuAND5.js +0 -97
  39. package/dist/validate-8r6Yo-uc.js +0 -35
@@ -1,224 +1,275 @@
1
- import { t as e } from "./springTimingFunction-CDHZ00JQ.js";
2
- import { CSSKeyframesAnimation as t } from "./engine-CNHvTgpw.js";
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 src/animation/animations.ts
5
- var ee = "\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n", i = (e) => new t({
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", a = (e) => new t({
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", o = (e) => new t({
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", s = (e) => new t({
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), c = "\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", l = (e) => new t({
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(c), 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", u = (e) => new t({
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", d = (e) => new t({
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", f = (e) => new t({
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), p = "\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", m = (e) => new t({
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(p), h = "\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", g = (e) => new t({
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(h), se = "\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n", ce = (e) => new t({
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(se), le = "\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", _ = (e) => new t({
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(le), ue = "@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}", v = (e) => new t({
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(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 100% {\n transform: translateX(100%);\n opacity: 0;\n }\n}", y = (e) => new t({
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(de), fe = "\n0% {\n filter: blur(10px);\n opacity: 0;\n}\n100% {\n filter: blur(0px);\n opacity: 1;\n}\n", b = (e) => new t({
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(fe), pe = "\n0% {\n filter: blur(0px);\n opacity: 1;\n}\n100% {\n filter: blur(10px);\n opacity: 0;\n}\n", x = (e) => new t({
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(pe), me = "\n0% {\n filter: blur(0px);\n}\n50% {\n filter: blur(10px);\n}\n100% {\n filter: blur(0px);\n}\n", he = (e) => new t({
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(me), ge = "\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", _e = (e) => new t({
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(ge), ve = "\n0% {\n background-position: -200% 0;\n}\n100% {\n background-position: 200% 0;\n}\n", S = (e) => new t({
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(ve), ye = "\n0%, 100% {\n filter: blur(0px);\n opacity: 1;\n}\n50% {\n filter: blur(4px);\n opacity: 0.5;\n}\n", be = (e) => new t({
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(ye), xe = "\n0% {\n background-position: 0% 50%;\n}\n50% {\n background-position: 100% 50%;\n}\n100% {\n background-position: 0% 50%;\n}\n", C = (e) => new t({
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(xe), w = "\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", T = (e) => new t({
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(w), E = "\n0%, 100% {\n border-right-color: transparent;\n}\n50% {\n border-right-color: black;\n}\n", D = (e) => new t({
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(E), O = "\n0% {\n max-height: 0;\n opacity: 0;\n}\n100% {\n max-height: 1000px;\n opacity: 1;\n}\n", k = (e) => new t({
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(O), A = "\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", j = (e) => new t({
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(A), M = "\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", N = (e) => new t({
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(M), Se = "\n0% {\n background-position: 50% 0%;\n}\n100% {\n background-position: 50% 100%;\n}\n", P = (e) => new t({
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), F = "\n0% {\n transform: translateX(-100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", I = (e) => new t({
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(F), Ce = "\n0% {\n transform: translateX(0);\n opacity: 1;\n}\n100% {\n transform: translateX(-100%);\n opacity: 0;\n}\n", L = (e) => new t({
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(Ce), R = "\n0% {\n transform: translateX(100%);\n opacity: 0;\n}\n100% {\n transform: translateX(0);\n opacity: 1;\n}\n", z = (e) => new t({
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(R), we = "\n0% {\n transform: translateX(0%);\n opacity: 1;\n\n}\n100% {\n transform: translateX(100%);\n opacity: 0;\n}\n", B = (e) => new t({
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(we), Te = "\n0% {\n transform: translateY(0px);\n}\n50% {\n transform: translateY(5px);\n}\n100% {\n transform: translateY(0px);\n}\n", V = (e) => new t({
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(Te), Ee = "@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({
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(Ee), De = "@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({
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(De), Oe = {
163
+ }).fromString(ke), Ae = {
157
164
  response: .35,
158
165
  dampingFraction: .78
159
166
  }, W = {
160
167
  response: .5,
161
168
  dampingFraction: .5
162
- }, ke = {
169
+ }, je = {
163
170
  response: .7,
164
171
  dampingFraction: .95
165
- }, Ae = "\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({
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(Ae), je = "\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({
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(Oe),
178
+ timingFunction: e(Ae),
172
179
  ...n ?? {}
173
- }).fromString(je), Me = "\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.15);\n }\n", q = (n) => new t({
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(Me), J = "\n 0%, 100% {\n transform: rotate(0deg);\n }\n 50% {\n transform: rotate(8deg);\n }\n", Y = (n) => new t({
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(ke),
186
+ timingFunction: e(je),
180
187
  ...n ?? {}
181
- }).fromString(J), X = {
182
- fadeIn: i,
183
- slideIn: f,
184
- slideInLeft: I,
188
+ }).fromString(Pe), X = {
189
+ fadeIn: o,
190
+ slideIn: m,
191
+ slideInLeft: L,
185
192
  slideInRight: z,
186
- rotateIn: d,
187
- blurIn: b,
193
+ rotateIn: p,
194
+ blurIn: x,
188
195
  springScaleIn: G,
189
196
  springSlideIn: K,
190
197
  jumpUp: H
191
198
  }, Z = {
192
- fadeOut: a,
193
- slideOutLeft: L,
199
+ fadeOut: s,
200
+ slideOutLeft: R,
194
201
  slideOutRight: B,
195
- blurOut: x,
196
- warpLeft: v,
197
- warpRight: y,
202
+ blurOut: S,
203
+ warpLeft: y,
204
+ warpRight: b,
198
205
  jumpDown: U
199
206
  }, Q = {
200
- pulse: o,
201
- shake: s,
202
- bounce: l,
203
- flip: u,
204
- notificationBounce: j,
205
- springPop: q,
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: m,
209
- glow: g,
210
- spinner: N,
211
- rainbowText: _,
212
- skeletonLoading: S,
213
- gradientBackground: C,
214
- parallaxScroll: P,
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: D
217
- }, Ne = {
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 { k as accordionExpand, Q as attentionPresets, b as blurIn, he as blurInOut, x as blurOut, l as bounce, X as enterPresets, Z as exitPresets, i as fadeIn, a as fadeOut, u as flipPreset, g as glow, C as gradientBackground, m as heartbeat, V as hover, U as jumpDown, H as jumpUp, $ as loopPresets, j as notificationBounce, P as parallaxScroll, Ne as presetTaxonomy, _e as progressBar, o as pulse, _ as rainbowText, d as rotateIn, T as rotateScale, s as shake, S as skeletonLoading, f as slideIn, I as slideInLeft, F as slideInLeftKeyframes, z as slideInRight, R as slideInRightKeyframes, L as slideOutLeft, B as slideOutRight, N as spinner, q as springPop, G as springScaleIn, K as springSlideIn, Y as springWobble, be as textFocusBlur, ce as typewriter, D as typingCursor, v as warpLeft, y as warpRight };
275
+ export { a as n, Ie as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
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 { a as e, c as t, f as n, i as r } from "./timeline-B7SV3T_E.js";
2
- import { n as i } from "./decay-BvNmFk51.js";
3
- import { n as a, t as o } from "./waapi-D9MHMm_9.js";
4
- import { a as s, i as c, n as l, r as u, t as d } from "./scroll-grammar-B4kPvGh5.js";
5
- //#region src/animation/scroll-scene.ts
6
- var f = {
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 p(e) {
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 m(e, t) {
33
+ function g(e, t) {
46
34
  if (e == null) return t;
47
- let n = p(e.offset);
35
+ let n = h(e.offset);
48
36
  if (n != null) {
49
37
  if (e.phase != null && e.phase !== "normal") {
50
- let t = f[e.phase];
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 : f[e.phase].start;
43
+ return e.phase == null ? t : m[e.phase].start;
56
44
  }
57
- function h(e) {
45
+ function _(e) {
58
46
  if (e == null) return {
59
47
  start: 0,
60
48
  end: 1
61
49
  };
62
- let t = m(e.start, 0), n = m(e.end, 1);
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
- function g(e) {
72
- let { animation: t, nativeSpec: n, scrub: i, snap: s, velocity: c } = e;
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 (s) return {
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 (c) return {
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 = a(t);
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 = o(t, n);
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 _(e) {
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 v = class {
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(r = {}) {
122
- if (this.resolvedRange = h(r.range), this.scrubSeconds = r.scrub ?? 0, this.snapPoints = r.snap != null && r.snap.length > 0 ? r.snap : void 0, this.scrubSeconds > 0) {
123
- let e = n(1 / (this.scrubSeconds * 60 + 1), .01, 1);
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: e,
115
+ damping: r,
126
116
  clamp: !0,
127
- ...r.smoothing
117
+ ...e.smoothing
128
118
  });
129
119
  }
130
- this.snapPoints != null && (this.snapSpring = new e({ ...r.snapSpring }));
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 y(e = {}) {
173
- return new v(e);
162
+ function x(e = {}) {
163
+ return new b(e);
174
164
  }
175
165
  //#endregion
176
- export { v as ScrollScene, y as createScrollScene, g as dispatchScrollBackend, d as parseScrollCSS, l as parseScrollRange, u as parseScrollTimeline, _ as pinCSS, h as resolveRange, c as roundTripScrollCSS, s as serializeScrollOptions };
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 };