use-scroll-animate 5.0.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/CHANGELOG.md +24 -0
- package/dist/components/effects.cjs +485 -0
- package/dist/components/effects.cjs.map +1 -0
- package/dist/components/effects.d.cts +102 -0
- package/dist/components/effects.d.ts +102 -0
- package/dist/components/effects.js +473 -0
- package/dist/components/effects.js.map +1 -0
- package/dist/components/fx.cjs +14 -10
- package/dist/components/fx.cjs.map +1 -1
- package/dist/components/fx.js +14 -10
- package/dist/components/fx.js.map +1 -1
- package/dist/components/lite.cjs +14 -10
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +14 -10
- package/dist/components/lite.js.map +1 -1
- package/dist/components.umd.js +2 -2
- package/dist/components.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components.md +30 -0
- package/package.json +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [5.2.0] - 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Bounce & physics pack** (`use-scroll-animate/components/effects`, `registerPhysicsEffects()`, `PHYSICS_FX`): `bounce-in` (spring overshoot), `rubber-band`, `elastic-hover` (springy lift, persistent), `drop-bounce` (gravity + restitution), `gravity-text` (per-character drop, keeps `aria-label`), `spring-follow` (element springs toward the pointer), `bell-swing` (damped swing from the top).
|
|
14
|
+
- Physics helpers: `solveSpring({ stiffness, damping, mass, steps })` → progress samples + settle time, `springKeyframes(map, spring)`, `bounceKeyframes(restitution, steps)` — physical motion that still runs on the Web Animations API.
|
|
15
|
+
- Showcase: **Bounce & physics**, **Gravity text** and **Elastic hover & spring follow** cards.
|
|
16
|
+
|
|
17
|
+
### Accessibility
|
|
18
|
+
- Under reduced motion `bounce-in` / `drop-bounce` become a short fade; `rubber-band`, `bell-swing`, `gravity-text`, `elastic-hover` and `spring-follow` don’t move.
|
|
19
|
+
|
|
20
|
+
## [5.1.0] - 2026-10-08
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
- **New entry `use-scroll-animate/components/effects`** — the 5.x effect packs, all registered through `registerEffect()` and playable with `playEffect()`, `bindEffect()` or `<usa-fx>`: `registerAllEffects()`, `registerCardClickEffects()`, `EFFECT_PACKS`, `CARD_FX`, `CLICK_FX`, `fxLayer()`. Kept out of `components` / `components/lite` (lite stays under its 70 KB budget); the UMD bundle registers every pack.
|
|
24
|
+
- **Card effects 2.0**: `holo` (holographic foil + 3D tilt following the pointer), `glare-sweep`, `book-open`, `card-fan`, `topple`, `float-tilt`.
|
|
25
|
+
- **Click effects 2.0**: `shockwave`, `ink-splash`, `star-burst`, `jelly-press`, `ring-ripple`, `emoji-rain` — particles spawn from the click point in a fixed, `aria-hidden`, pointer-transparent layer.
|
|
26
|
+
- Showcase: **Holographic card**, **Card moves** and **Click effects 2.0** cards in the Effects category (code tabs import `components/effects`).
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- `bindEffect()` — a persistent effect (one that returns a cleanup) now *replaces* its previous run on re-trigger instead of stacking; every effect kind honours `reduced`.
|
|
30
|
+
|
|
31
|
+
### Accessibility
|
|
32
|
+
- Under reduced motion particles are skipped, presses fade instead of squashing, loops don’t start, `holo` keeps a static sheen.
|
|
33
|
+
|
|
10
34
|
## [5.0.0] - 2026-10-08
|
|
11
35
|
|
|
12
36
|
### ⚠ BREAKING CHANGES (see [docs/upgrading-5.md](./docs/upgrading-5.md); `npx usa-codemod-5 --write src`)
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var components_fx = require('./fx.cjs');
|
|
4
|
+
require('../chunks/base-B5i8qQPR.cjs');
|
|
5
|
+
require('../chunks/core-BDcszY4L.cjs');
|
|
6
|
+
require('./tokens.cjs');
|
|
7
|
+
require('../chunks/fx-B8hk1Fby.cjs');
|
|
8
|
+
|
|
9
|
+
let layer = null;
|
|
10
|
+
/** A fixed, pointer-transparent, aria-hidden layer for transient particles. */
|
|
11
|
+
function fxLayer() {
|
|
12
|
+
if (layer?.isConnected)
|
|
13
|
+
return layer;
|
|
14
|
+
layer = document.createElement('div');
|
|
15
|
+
layer.setAttribute('aria-hidden', 'true');
|
|
16
|
+
layer.setAttribute('data-usa-fx-layer', '');
|
|
17
|
+
layer.style.cssText = 'position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000;contain:strict';
|
|
18
|
+
document.body.appendChild(layer);
|
|
19
|
+
return layer;
|
|
20
|
+
}
|
|
21
|
+
/** Client point of the triggering pointer event, or the element's center. */
|
|
22
|
+
function origin(el, ctx) {
|
|
23
|
+
const e = ctx.event;
|
|
24
|
+
const r = el.getBoundingClientRect();
|
|
25
|
+
return e && typeof e.clientX === 'number' && (e.clientX || e.clientY) ? { x: e.clientX, y: e.clientY } : { x: r.left + r.width / 2, y: r.top + r.height / 2 };
|
|
26
|
+
}
|
|
27
|
+
/** Spawn an absolutely positioned node in the fx layer at (x, y); removed when its animation ends. */
|
|
28
|
+
function spawn(x, y, css, ctx, frames, opts, text = '') {
|
|
29
|
+
const n = document.createElement('span');
|
|
30
|
+
n.style.cssText = `position:absolute;left:${x}px;top:${y}px;${css}`;
|
|
31
|
+
if (text)
|
|
32
|
+
n.textContent = text;
|
|
33
|
+
fxLayer().appendChild(n);
|
|
34
|
+
const a = ctx.animate(n, frames, { fill: 'forwards', ...opts });
|
|
35
|
+
const rm = () => n.remove();
|
|
36
|
+
if (a)
|
|
37
|
+
a.finished.then(rm, rm);
|
|
38
|
+
else
|
|
39
|
+
rm();
|
|
40
|
+
return a;
|
|
41
|
+
}
|
|
42
|
+
/** An overlay child covering `el` (makes `el` a positioning context). Returns it and a remover. */
|
|
43
|
+
function overlay(el, css) {
|
|
44
|
+
const o = document.createElement('span');
|
|
45
|
+
o.setAttribute('aria-hidden', 'true');
|
|
46
|
+
o.style.cssText = `position:absolute;inset:0;pointer-events:none;border-radius:inherit;${css}`;
|
|
47
|
+
if (getComputedStyle(el).position === 'static')
|
|
48
|
+
el.style.position = 'relative';
|
|
49
|
+
el.appendChild(o);
|
|
50
|
+
return [o, () => o.remove()];
|
|
51
|
+
}
|
|
52
|
+
const PALETTE = ['#7c5cff', '#ff5c8a', '#22d3ee', '#facc15', '#34d399'];
|
|
53
|
+
const rand = (a, b) => a + Math.random() * (b - a);
|
|
54
|
+
/** Wait for all animations (ignoring nulls). */
|
|
55
|
+
const all = (anims) => Promise.all(anims.filter(Boolean).map((a) => a.finished.catch(() => undefined)));
|
|
56
|
+
|
|
57
|
+
const CARD_FX = [
|
|
58
|
+
{
|
|
59
|
+
name: 'holo',
|
|
60
|
+
kind: 'card',
|
|
61
|
+
description: 'Holographic foil: a rainbow sheen and sparkle that follow the pointer (persistent; bind with trigger="load").',
|
|
62
|
+
reduced: 'run',
|
|
63
|
+
defaults: { strength: 0.55 },
|
|
64
|
+
run: (el, o, ctx) => {
|
|
65
|
+
const [layer, remove] = overlay(el, `mix-blend-mode:color-dodge;opacity:${o.strength};background:linear-gradient(115deg,transparent 20%,#ff8bd855 35%,#8bf3ff55 45%,#fff58b55 55%,transparent 70%),repeating-linear-gradient(55deg,#ffffff10 0 2px,transparent 2px 6px);background-size:250% 250%,100% 100%;background-position:50% 50%;transition:background-position .2s ease-out`);
|
|
66
|
+
if (ctx.reduced)
|
|
67
|
+
return remove;
|
|
68
|
+
const move = (e) => {
|
|
69
|
+
const r = el.getBoundingClientRect();
|
|
70
|
+
const x = ((e.clientX - r.left) / (r.width || 1)) * 100;
|
|
71
|
+
const y = ((e.clientY - r.top) / (r.height || 1)) * 100;
|
|
72
|
+
layer.style.backgroundPosition = `${x}% ${y}%, 0 0`;
|
|
73
|
+
el.style.transform = `perspective(700px) rotateY(${(x - 50) / 8}deg) rotateX(${(50 - y) / 8}deg)`;
|
|
74
|
+
};
|
|
75
|
+
const leave = () => {
|
|
76
|
+
layer.style.backgroundPosition = '50% 50%, 0 0';
|
|
77
|
+
el.style.transform = '';
|
|
78
|
+
};
|
|
79
|
+
el.addEventListener('pointermove', move);
|
|
80
|
+
el.addEventListener('pointerleave', leave);
|
|
81
|
+
return () => {
|
|
82
|
+
el.removeEventListener('pointermove', move);
|
|
83
|
+
el.removeEventListener('pointerleave', leave);
|
|
84
|
+
leave();
|
|
85
|
+
remove();
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'glare-sweep',
|
|
91
|
+
kind: 'card',
|
|
92
|
+
description: 'A diagonal light streak sweeps across the card once.',
|
|
93
|
+
defaults: { duration: 900, color: 'rgba(255,255,255,.55)' },
|
|
94
|
+
run: (el, o, ctx) => {
|
|
95
|
+
if (ctx.reduced)
|
|
96
|
+
return;
|
|
97
|
+
const [g, remove] = overlay(el, `overflow:hidden;background:linear-gradient(105deg,transparent 35%,${o.color} 50%,transparent 65%);background-size:250% 100%`);
|
|
98
|
+
const a = ctx.animate(g, [{ backgroundPosition: '150% 0' }, { backgroundPosition: '-50% 0' }], { duration: o.duration, easing: 'ease-in-out' });
|
|
99
|
+
if (a)
|
|
100
|
+
a.finished.then(remove, remove);
|
|
101
|
+
else
|
|
102
|
+
remove();
|
|
103
|
+
return a;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'book-open',
|
|
108
|
+
kind: 'card',
|
|
109
|
+
description: 'The card opens like a book cover around its left edge, peeks and closes.',
|
|
110
|
+
defaults: { angle: 35, duration: 1100 },
|
|
111
|
+
run: (el, o, ctx) => {
|
|
112
|
+
el.style.transformOrigin = 'left center';
|
|
113
|
+
return ctx.animate(el, [{ transform: 'perspective(900px) rotateY(0)' }, { transform: `perspective(900px) rotateY(-${o.angle}deg)`, offset: 0.45 }, { transform: 'perspective(900px) rotateY(0)' }], { duration: o.duration, easing: 'cubic-bezier(0.34, 1.3, 0.64, 1)' });
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'card-fan',
|
|
118
|
+
kind: 'card',
|
|
119
|
+
description: 'The element’s children fan out like a hand of cards, then gather.',
|
|
120
|
+
defaults: { spread: 14, duration: 900 },
|
|
121
|
+
run: (el, o, ctx) => {
|
|
122
|
+
const kids = Array.from(el.children);
|
|
123
|
+
const mid = (kids.length - 1) / 2;
|
|
124
|
+
return all(kids.map((k, i) => ctx.animate(k, [{ transform: 'none' }, { transform: `translateX(${(i - mid) * o.spread}px) rotate(${(i - mid) * (o.spread / 2)}deg)`, offset: 0.5 }, { transform: 'none' }], { duration: o.duration, easing: 'cubic-bezier(0.34, 1.56, 0.64, 1)' })));
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'topple',
|
|
129
|
+
kind: 'card',
|
|
130
|
+
description: 'Tips backwards on its bottom edge and springs upright.',
|
|
131
|
+
defaults: { duration: 1000 },
|
|
132
|
+
run: (el, o, ctx) => {
|
|
133
|
+
el.style.transformOrigin = 'bottom center';
|
|
134
|
+
return ctx.animate(el, [{ transform: 'perspective(800px) rotateX(0)' }, { transform: 'perspective(800px) rotateX(55deg)', offset: 0.35 }, { transform: 'perspective(800px) rotateX(-12deg)', offset: 0.6 }, { transform: 'perspective(800px) rotateX(5deg)', offset: 0.8 }, { transform: 'perspective(800px) rotateX(0)' }], { duration: o.duration, easing: 'ease-out' });
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'float-tilt',
|
|
139
|
+
kind: 'loop',
|
|
140
|
+
description: 'Idle floating with a slow 3D sway (loop; stops under reduced motion).',
|
|
141
|
+
defaults: { duration: 4200, distance: 8 },
|
|
142
|
+
run: (el, o, ctx) => {
|
|
143
|
+
const a = ctx.animate(el, [{ transform: 'translateY(0) rotateX(0) rotateY(0)' }, { transform: `translateY(-${o.distance}px) rotateX(4deg) rotateY(-5deg)` }, { transform: 'translateY(0) rotateX(0) rotateY(0)' }], { duration: o.duration, iterations: Infinity, easing: 'ease-in-out' });
|
|
144
|
+
return () => a?.cancel();
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
];
|
|
148
|
+
const CLICK_FX = [
|
|
149
|
+
{
|
|
150
|
+
name: 'shockwave',
|
|
151
|
+
kind: 'click',
|
|
152
|
+
description: 'Two expanding rings from the click point.',
|
|
153
|
+
defaults: { color: '#7c5cff', size: 160, duration: 700 },
|
|
154
|
+
run: (el, o, ctx) => {
|
|
155
|
+
if (ctx.reduced)
|
|
156
|
+
return;
|
|
157
|
+
const { x, y } = origin(el, ctx);
|
|
158
|
+
return all([0, 120].map((delay) => spawn(x, y, `width:${o.size}px;height:${o.size}px;margin:${-o.size / 2}px 0 0 ${-o.size / 2}px;border:3px solid ${o.color};border-radius:50%`, ctx, [{ transform: 'scale(0)', opacity: 0.9 }, { transform: 'scale(1)', opacity: 0 }], { duration: o.duration, delay, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' })));
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'ink-splash',
|
|
163
|
+
kind: 'click',
|
|
164
|
+
description: 'Ink blobs splatter from the click point and fade.',
|
|
165
|
+
defaults: { count: 9, colors: PALETTE, duration: 800 },
|
|
166
|
+
run: (el, o, ctx) => {
|
|
167
|
+
if (ctx.reduced)
|
|
168
|
+
return;
|
|
169
|
+
const { x, y } = origin(el, ctx);
|
|
170
|
+
return all(Array.from({ length: o.count }, (_, i) => {
|
|
171
|
+
const s = rand(6, 22);
|
|
172
|
+
const ang = rand(0, Math.PI * 2);
|
|
173
|
+
const d = rand(20, 70);
|
|
174
|
+
return spawn(x, y, `width:${s}px;height:${s}px;margin:${-s / 2}px 0 0 ${-s / 2}px;background:${o.colors[i % o.colors.length]};border-radius:${rand(40, 50)}% ${rand(50, 60)}% ${rand(40, 60)}% ${rand(45, 55)}%`, ctx, [{ transform: 'translate(0,0) scale(.3)', opacity: 1 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d}px) scale(1)`, opacity: 0.9, offset: 0.5 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d + 8}px) scale(1.1)`, opacity: 0 }], { duration: o.duration, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' });
|
|
175
|
+
}));
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'star-burst',
|
|
180
|
+
kind: 'click',
|
|
181
|
+
description: 'Spinning stars burst outward.',
|
|
182
|
+
defaults: { count: 10, colors: ['#facc15', '#fb923c', '#f472b6'], duration: 900 },
|
|
183
|
+
run: (el, o, ctx) => {
|
|
184
|
+
if (ctx.reduced)
|
|
185
|
+
return;
|
|
186
|
+
const { x, y } = origin(el, ctx);
|
|
187
|
+
return all(Array.from({ length: o.count }, (_, i) => {
|
|
188
|
+
const ang = (i / o.count) * Math.PI * 2;
|
|
189
|
+
const d = rand(40, 80);
|
|
190
|
+
const s = rand(12, 22);
|
|
191
|
+
return spawn(x, y, `font-size:${s}px;line-height:1;margin:${-s / 2}px 0 0 ${-s / 2}px;color:${o.colors[i % o.colors.length]}`, ctx, [{ transform: 'translate(0,0) rotate(0) scale(.2)', opacity: 1 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d}px) rotate(${rand(180, 360)}deg) scale(1)`, opacity: 0 }], { duration: o.duration, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' }, '★');
|
|
192
|
+
}));
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'jelly-press',
|
|
197
|
+
kind: 'click',
|
|
198
|
+
description: 'The pressed element squishes like jelly and wobbles back.',
|
|
199
|
+
defaults: { duration: 650 },
|
|
200
|
+
run: (el, o, ctx) => ctx.reduced ? ctx.animate(el, [{ opacity: 1 }, { opacity: 0.7 }, { opacity: 1 }], { duration: 250 }) : ctx.animate(el, [{ transform: 'scale(1,1)' }, { transform: 'scale(1.15,.85)', offset: 0.2 }, { transform: 'scale(.9,1.1)', offset: 0.4 }, { transform: 'scale(1.05,.95)', offset: 0.6 }, { transform: 'scale(.98,1.02)', offset: 0.8 }, { transform: 'scale(1,1)' }], { duration: o.duration, easing: 'ease-out' }),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'ring-ripple',
|
|
204
|
+
kind: 'click',
|
|
205
|
+
description: 'Concentric outlined rings ripple out like water.',
|
|
206
|
+
defaults: { rings: 3, color: '#22d3ee', size: 120, duration: 1000 },
|
|
207
|
+
run: (el, o, ctx) => {
|
|
208
|
+
if (ctx.reduced)
|
|
209
|
+
return;
|
|
210
|
+
const { x, y } = origin(el, ctx);
|
|
211
|
+
return all(Array.from({ length: o.rings }, (_, i) => spawn(x, y, `width:${o.size}px;height:${o.size}px;margin:${-o.size / 2}px 0 0 ${-o.size / 2}px;border:2px solid ${o.color};border-radius:50%`, ctx, [{ transform: 'scale(.1)', opacity: 0.8 }, { transform: 'scale(1)', opacity: 0 }], { duration: o.duration, delay: i * 160, easing: 'ease-out' })));
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'emoji-rain',
|
|
216
|
+
kind: 'click',
|
|
217
|
+
description: 'Emoji pop up and fall around the click (pass `emoji: "🎉✨💜"`).',
|
|
218
|
+
defaults: { emoji: '🎉✨💜🔥', count: 14, duration: 1300 },
|
|
219
|
+
run: (el, o, ctx) => {
|
|
220
|
+
if (ctx.reduced)
|
|
221
|
+
return;
|
|
222
|
+
const { x, y } = origin(el, ctx);
|
|
223
|
+
const chars = Array.from(String(o.emoji));
|
|
224
|
+
return all(Array.from({ length: o.count }, (_, i) => {
|
|
225
|
+
const dx = rand(-90, 90);
|
|
226
|
+
return spawn(x, y, `font-size:${rand(16, 28)}px;line-height:1`, ctx, [{ transform: 'translate(0,0) scale(.4)', opacity: 0 }, { transform: `translate(${dx * 0.6}px,${rand(-90, -50)}px) scale(1)`, opacity: 1, offset: 0.35 }, { transform: `translate(${dx}px,${rand(40, 90)}px) rotate(${rand(-60, 60)}deg) scale(.9)`, opacity: 0 }], { duration: o.duration, delay: i * 25, easing: 'cubic-bezier(0.33, 0, 0.67, 1)' }, chars[i % chars.length]);
|
|
227
|
+
}));
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
];
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Sample a damped spring from 0 → 1 and return the progress values plus the
|
|
234
|
+
* time (ms) it takes to settle. Pure, deterministic.
|
|
235
|
+
*/
|
|
236
|
+
function solveSpring({ stiffness = 180, damping = 12, mass = 1, steps = 40 } = {}) {
|
|
237
|
+
const dt = 1 / 120;
|
|
238
|
+
let x = 0;
|
|
239
|
+
let v = 0;
|
|
240
|
+
const trace = [];
|
|
241
|
+
let t = 0;
|
|
242
|
+
for (; t < 4; t += dt) {
|
|
243
|
+
const a = (-stiffness * (x - 1) - damping * v) / mass;
|
|
244
|
+
v += a * dt;
|
|
245
|
+
x += v * dt;
|
|
246
|
+
trace.push(x);
|
|
247
|
+
if (t > 0.1 && Math.abs(x - 1) < 0.001 && Math.abs(v) < 0.01)
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
const values = Array.from({ length: steps + 1 }, (_, i) => +trace[Math.min(trace.length - 1, Math.round((i / steps) * (trace.length - 1)))].toFixed(4));
|
|
251
|
+
values[0] = 0;
|
|
252
|
+
values[steps] = 1;
|
|
253
|
+
return { values, duration: Math.round(trace.length * dt * 1000) };
|
|
254
|
+
}
|
|
255
|
+
/** Keyframes for a property driven by a spring: `map(progress)` → keyframe. */
|
|
256
|
+
function springKeyframes(map, spring) {
|
|
257
|
+
const { values, duration } = solveSpring(spring);
|
|
258
|
+
return { frames: values.map(map), duration };
|
|
259
|
+
}
|
|
260
|
+
/** Height (0 = floor, 1 = drop height) of a ball dropped with restitution `bounce`, sampled `steps` times. */
|
|
261
|
+
function bounceKeyframes(bounce = 0.5, steps = 48) {
|
|
262
|
+
// segment durations scale with sqrt(height); heights scale with bounce^2 per hop
|
|
263
|
+
const hops = [1];
|
|
264
|
+
let h = 1;
|
|
265
|
+
while (hops.length < 6 && h > 0.01) {
|
|
266
|
+
h *= bounce * bounce;
|
|
267
|
+
hops.push(h);
|
|
268
|
+
}
|
|
269
|
+
const segT = hops.map((hh, i) => (i === 0 ? Math.sqrt(hh) : 2 * Math.sqrt(hh)));
|
|
270
|
+
const total = segT.reduce((a, b) => a + b, 0);
|
|
271
|
+
return Array.from({ length: steps + 1 }, (_, i) => {
|
|
272
|
+
let t = (i / steps) * total;
|
|
273
|
+
for (let k = 0; k < hops.length; k++) {
|
|
274
|
+
if (t <= segT[k] || k === hops.length - 1) {
|
|
275
|
+
const tt = Math.min(t, segT[k]);
|
|
276
|
+
if (k === 0)
|
|
277
|
+
return +(1 - (tt / segT[0]) ** 2).toFixed(4);
|
|
278
|
+
const half = segT[k] / 2;
|
|
279
|
+
return +(hops[k] * (1 - ((tt - half) / half) ** 2)).toFixed(4);
|
|
280
|
+
}
|
|
281
|
+
t -= segT[k];
|
|
282
|
+
}
|
|
283
|
+
return 0;
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
const fade = (el, ctx) => ctx.animate(el, [{ opacity: 0 }, { opacity: 1 }], { duration: 200 });
|
|
287
|
+
const PHYSICS_FX = [
|
|
288
|
+
{
|
|
289
|
+
name: 'bounce-in',
|
|
290
|
+
kind: 'enter',
|
|
291
|
+
description: 'Springs in from small with an overshoot (spring solver; stiffness / damping options).',
|
|
292
|
+
defaults: { stiffness: 220, damping: 11, from: 0.3 },
|
|
293
|
+
run: (el, o, ctx) => {
|
|
294
|
+
if (ctx.reduced)
|
|
295
|
+
return fade(el, ctx);
|
|
296
|
+
const { frames, duration } = springKeyframes((p) => ({ transform: `scale(${(o.from + (1 - o.from) * p).toFixed(4)})`, opacity: Math.min(1, p * 3) }), o);
|
|
297
|
+
return ctx.animate(el, frames, { duration, easing: 'linear' });
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'rubber-band',
|
|
302
|
+
kind: 'attention',
|
|
303
|
+
description: 'Stretches wide, snaps back thin and settles like a rubber band.',
|
|
304
|
+
defaults: { duration: 900, amount: 0.25 },
|
|
305
|
+
run: (el, o, ctx) => {
|
|
306
|
+
if (ctx.reduced)
|
|
307
|
+
return;
|
|
308
|
+
const a = o.amount;
|
|
309
|
+
return ctx.animate(el, [{ transform: 'scale(1,1)' }, { transform: `scale(${1 + a},${1 - a})`, offset: 0.3 }, { transform: `scale(${1 - a},${1 + a})`, offset: 0.4 }, { transform: `scale(${1 + a / 2},${1 - a / 2})`, offset: 0.5 }, { transform: `scale(${1 - a / 5},${1 + a / 5})`, offset: 0.65 }, { transform: `scale(${1 + a / 10},${1 - a / 10})`, offset: 0.75 }, { transform: 'scale(1,1)' }], { duration: o.duration });
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'elastic-hover',
|
|
314
|
+
kind: 'hover',
|
|
315
|
+
description: 'Hover lifts with a springy overshoot; leaving springs back (persistent; trigger="load").',
|
|
316
|
+
defaults: { lift: 6, scale: 1.04, stiffness: 260, damping: 10 },
|
|
317
|
+
run: (el, o, ctx) => {
|
|
318
|
+
if (ctx.reduced)
|
|
319
|
+
return;
|
|
320
|
+
const to = (on) => {
|
|
321
|
+
const from = on ? 0 : 1;
|
|
322
|
+
const { frames, duration } = springKeyframes((p) => {
|
|
323
|
+
const k = from + (on ? p : -p);
|
|
324
|
+
return { transform: `translateY(${(-o.lift * k).toFixed(2)}px) scale(${(1 + (o.scale - 1) * k).toFixed(4)})` };
|
|
325
|
+
}, o);
|
|
326
|
+
ctx.animate(el, frames, { duration, fill: 'forwards', easing: 'linear' });
|
|
327
|
+
};
|
|
328
|
+
const enter = () => to(true);
|
|
329
|
+
const leave = () => to(false);
|
|
330
|
+
el.addEventListener('pointerenter', enter);
|
|
331
|
+
el.addEventListener('pointerleave', leave);
|
|
332
|
+
return () => {
|
|
333
|
+
el.removeEventListener('pointerenter', enter);
|
|
334
|
+
el.removeEventListener('pointerleave', leave);
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
name: 'drop-bounce',
|
|
340
|
+
kind: 'enter',
|
|
341
|
+
description: 'Falls in under gravity and bounces to rest (`height`, `bounce` restitution 0–0.9).',
|
|
342
|
+
defaults: { height: 120, bounce: 0.5, duration: 1100 },
|
|
343
|
+
run: (el, o, ctx) => {
|
|
344
|
+
if (ctx.reduced)
|
|
345
|
+
return fade(el, ctx);
|
|
346
|
+
const hs = bounceKeyframes(Math.min(0.9, Math.max(0, o.bounce)));
|
|
347
|
+
return ctx.animate(el, hs.map((h, i) => ({ transform: `translateY(${(-h * o.height).toFixed(1)}px)`, opacity: i === 0 ? 0 : 1 })), { duration: o.duration, easing: 'linear' });
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: 'gravity-text',
|
|
352
|
+
kind: 'text',
|
|
353
|
+
description: 'Each character drops in under gravity with a bounce, staggered (splits the text into aria-hidden spans; the label stays readable).',
|
|
354
|
+
defaults: { height: 60, bounce: 0.45, duration: 900, stagger: 45 },
|
|
355
|
+
run: (el, o, ctx) => {
|
|
356
|
+
if (ctx.reduced)
|
|
357
|
+
return;
|
|
358
|
+
if (!el.dataset.usaSplit) {
|
|
359
|
+
const text = el.textContent || '';
|
|
360
|
+
el.setAttribute('aria-label', text);
|
|
361
|
+
el.textContent = '';
|
|
362
|
+
for (const ch of Array.from(text)) {
|
|
363
|
+
const s = document.createElement('span');
|
|
364
|
+
s.setAttribute('aria-hidden', 'true');
|
|
365
|
+
s.style.display = 'inline-block';
|
|
366
|
+
s.style.whiteSpace = 'pre';
|
|
367
|
+
s.textContent = ch;
|
|
368
|
+
el.appendChild(s);
|
|
369
|
+
}
|
|
370
|
+
el.dataset.usaSplit = '1';
|
|
371
|
+
}
|
|
372
|
+
const hs = bounceKeyframes(o.bounce, 32);
|
|
373
|
+
return all(Array.from(el.children).map((s, i) => ctx.animate(s, hs.map((h) => ({ transform: `translateY(${(-h * o.height).toFixed(1)}px)` })), { duration: o.duration, delay: i * o.stagger, easing: 'linear', fill: 'backwards' })));
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
name: 'spring-follow',
|
|
378
|
+
kind: 'cursor',
|
|
379
|
+
description: 'The element springs toward the pointer while it moves over its parent, and back home on leave (persistent).',
|
|
380
|
+
defaults: { stiffness: 0.12, damping: 0.75, range: 40 },
|
|
381
|
+
run: (el, o, ctx) => {
|
|
382
|
+
if (ctx.reduced)
|
|
383
|
+
return;
|
|
384
|
+
const host = el.parentElement || el;
|
|
385
|
+
let tx = 0;
|
|
386
|
+
let ty = 0;
|
|
387
|
+
let x = 0;
|
|
388
|
+
let y = 0;
|
|
389
|
+
let vx = 0;
|
|
390
|
+
let vy = 0;
|
|
391
|
+
let raf = 0;
|
|
392
|
+
const tick = () => {
|
|
393
|
+
vx = (vx + (tx - x) * o.stiffness) * o.damping;
|
|
394
|
+
vy = (vy + (ty - y) * o.stiffness) * o.damping;
|
|
395
|
+
x += vx;
|
|
396
|
+
y += vy;
|
|
397
|
+
el.style.translate = `${x.toFixed(2)}px ${y.toFixed(2)}px`;
|
|
398
|
+
raf = Math.abs(vx) + Math.abs(vy) + Math.abs(tx - x) + Math.abs(ty - y) > 0.05 ? requestAnimationFrame(tick) : 0;
|
|
399
|
+
};
|
|
400
|
+
const kick = () => {
|
|
401
|
+
if (!raf)
|
|
402
|
+
raf = requestAnimationFrame(tick);
|
|
403
|
+
};
|
|
404
|
+
const move = (e) => {
|
|
405
|
+
const r = host.getBoundingClientRect();
|
|
406
|
+
const nx = (e.clientX - r.left) / (r.width || 1) - 0.5;
|
|
407
|
+
const ny = (e.clientY - r.top) / (r.height || 1) - 0.5;
|
|
408
|
+
tx = nx * 2 * o.range;
|
|
409
|
+
ty = ny * 2 * o.range;
|
|
410
|
+
kick();
|
|
411
|
+
};
|
|
412
|
+
const leave = () => {
|
|
413
|
+
tx = ty = 0;
|
|
414
|
+
kick();
|
|
415
|
+
};
|
|
416
|
+
host.addEventListener('pointermove', move);
|
|
417
|
+
host.addEventListener('pointerleave', leave);
|
|
418
|
+
return () => {
|
|
419
|
+
host.removeEventListener('pointermove', move);
|
|
420
|
+
host.removeEventListener('pointerleave', leave);
|
|
421
|
+
cancelAnimationFrame(raf);
|
|
422
|
+
el.style.translate = '';
|
|
423
|
+
};
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
name: 'bell-swing',
|
|
428
|
+
kind: 'attention',
|
|
429
|
+
description: 'Swings from its top like a ringing bell with damped oscillation.',
|
|
430
|
+
defaults: { angle: 22, stiffness: 120, damping: 4 },
|
|
431
|
+
run: (el, o, ctx) => {
|
|
432
|
+
if (ctx.reduced)
|
|
433
|
+
return;
|
|
434
|
+
el.style.transformOrigin = 'top center';
|
|
435
|
+
const { frames, duration } = springKeyframes((p) => ({ transform: `rotate(${(o.angle * (1 - p)).toFixed(2)}deg)` }), { stiffness: o.stiffness, damping: o.damping, steps: 48 });
|
|
436
|
+
frames[0] = { transform: 'rotate(0deg)' };
|
|
437
|
+
return ctx.animate(el, frames, { duration: Math.min(duration, 2400), easing: 'linear' });
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
];
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* use-scroll-animate/components/effects — the 5.x effect packs, all
|
|
444
|
+
* registered through `registerEffect()` (5.0) and playable with
|
|
445
|
+
* `playEffect()`, `bindEffect()` or `<usa-fx>`. Kept out of
|
|
446
|
+
* `use-scroll-animate/components` / `components/lite` so their size budgets
|
|
447
|
+
* hold; the UMD bundle registers everything.
|
|
448
|
+
*
|
|
449
|
+
* ```ts
|
|
450
|
+
* import { registerAllEffects } from 'use-scroll-animate/components/effects';
|
|
451
|
+
* registerAllEffects();
|
|
452
|
+
* ```
|
|
453
|
+
*/
|
|
454
|
+
/** The effect packs by version, in release order. */
|
|
455
|
+
const EFFECT_PACKS = {
|
|
456
|
+
'cards-click': [...CARD_FX, ...CLICK_FX],
|
|
457
|
+
physics: PHYSICS_FX,
|
|
458
|
+
};
|
|
459
|
+
/** 5.1: card & click effects 2.0. */
|
|
460
|
+
function registerCardClickEffects() {
|
|
461
|
+
components_fx.registerEffects(EFFECT_PACKS['cards-click']);
|
|
462
|
+
}
|
|
463
|
+
/** 5.2: bounce & physics micro-interactions. */
|
|
464
|
+
function registerPhysicsEffects() {
|
|
465
|
+
components_fx.registerEffects(EFFECT_PACKS.physics);
|
|
466
|
+
}
|
|
467
|
+
/** Register the built-ins and every pack (idempotent). */
|
|
468
|
+
function registerAllEffects() {
|
|
469
|
+
components_fx.registerBuiltinEffects();
|
|
470
|
+
for (const defs of Object.values(EFFECT_PACKS))
|
|
471
|
+
components_fx.registerEffects(defs);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
exports.CARD_FX = CARD_FX;
|
|
475
|
+
exports.CLICK_FX = CLICK_FX;
|
|
476
|
+
exports.EFFECT_PACKS = EFFECT_PACKS;
|
|
477
|
+
exports.PHYSICS_FX = PHYSICS_FX;
|
|
478
|
+
exports.bounceKeyframes = bounceKeyframes;
|
|
479
|
+
exports.fxLayer = fxLayer;
|
|
480
|
+
exports.registerAllEffects = registerAllEffects;
|
|
481
|
+
exports.registerCardClickEffects = registerCardClickEffects;
|
|
482
|
+
exports.registerPhysicsEffects = registerPhysicsEffects;
|
|
483
|
+
exports.solveSpring = solveSpring;
|
|
484
|
+
exports.springKeyframes = springKeyframes;
|
|
485
|
+
//# sourceMappingURL=effects.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effects.cjs","sources":["../../src/components/effects/shared.ts","../../src/components/effects/cards-click.ts","../../src/components/effects/physics.ts","../../src/components/effects/index.ts"],"sourcesContent":["/** Helpers shared by the 5.x effect packs. */\nimport type { EffectContext } from '../fx/registry';\n\nlet layer: HTMLElement | null = null;\n/** A fixed, pointer-transparent, aria-hidden layer for transient particles. */\nexport function fxLayer(): HTMLElement {\n if (layer?.isConnected) return layer;\n layer = document.createElement('div');\n layer.setAttribute('aria-hidden', 'true');\n layer.setAttribute('data-usa-fx-layer', '');\n layer.style.cssText = 'position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483000;contain:strict';\n document.body.appendChild(layer);\n return layer;\n}\n\n/** Client point of the triggering pointer event, or the element's center. */\nexport function origin(el: Element, ctx: EffectContext): { x: number; y: number } {\n const e = ctx.event as PointerEvent | MouseEvent | undefined;\n const r = el.getBoundingClientRect();\n return e && typeof e.clientX === 'number' && (e.clientX || e.clientY) ? { x: e.clientX, y: e.clientY } : { x: r.left + r.width / 2, y: r.top + r.height / 2 };\n}\n\n/** Spawn an absolutely positioned node in the fx layer at (x, y); removed when its animation ends. */\nexport function spawn(x: number, y: number, css: string, ctx: EffectContext, frames: Keyframe[], opts: KeyframeAnimationOptions, text = ''): Animation | null {\n const n = document.createElement('span');\n n.style.cssText = `position:absolute;left:${x}px;top:${y}px;${css}`;\n if (text) n.textContent = text;\n fxLayer().appendChild(n);\n const a = ctx.animate(n, frames, { fill: 'forwards', ...opts });\n const rm = () => n.remove();\n if (a) a.finished.then(rm, rm);\n else rm();\n return a;\n}\n\n/** An overlay child covering `el` (makes `el` a positioning context). Returns it and a remover. */\nexport function overlay(el: HTMLElement, css: string): [HTMLElement, () => void] {\n const o = document.createElement('span');\n o.setAttribute('aria-hidden', 'true');\n o.style.cssText = `position:absolute;inset:0;pointer-events:none;border-radius:inherit;${css}`;\n if (getComputedStyle(el).position === 'static') el.style.position = 'relative';\n el.appendChild(o);\n return [o, () => o.remove()];\n}\n\nexport const PALETTE = ['#7c5cff', '#ff5c8a', '#22d3ee', '#facc15', '#34d399'];\nexport const rand = (a: number, b: number): number => a + Math.random() * (b - a);\n\n/** Wait for all animations (ignoring nulls). */\nexport const all = (anims: (Animation | null)[]): Promise<unknown> => Promise.all(anims.filter(Boolean).map((a) => a!.finished.catch(() => undefined)));\n","/**\n * 5.1 — card & click effects 2.0, registered through `registerEffect()`.\n * Card: `holo` (holographic foil following the pointer), `glare-sweep`,\n * `book-open`, `card-fan`, `topple`, `float-tilt`. Click: `shockwave`,\n * `ink-splash`, `star-burst`, `jelly-press`, `ring-ripple`, `emoji-rain`.\n */\nimport type { EffectDefinition } from '../fx/registry';\nimport { origin, spawn, overlay, PALETTE, rand, all } from './shared';\n\nexport const CARD_FX: EffectDefinition[] = [\n {\n name: 'holo',\n kind: 'card',\n description: 'Holographic foil: a rainbow sheen and sparkle that follow the pointer (persistent; bind with trigger=\"load\").',\n reduced: 'run',\n defaults: { strength: 0.55 },\n run: (el, o: any, ctx) => {\n const [layer, remove] = overlay(el, `mix-blend-mode:color-dodge;opacity:${o.strength};background:linear-gradient(115deg,transparent 20%,#ff8bd855 35%,#8bf3ff55 45%,#fff58b55 55%,transparent 70%),repeating-linear-gradient(55deg,#ffffff10 0 2px,transparent 2px 6px);background-size:250% 250%,100% 100%;background-position:50% 50%;transition:background-position .2s ease-out`);\n if (ctx.reduced) return remove;\n const move = (e: PointerEvent) => {\n const r = el.getBoundingClientRect();\n const x = ((e.clientX - r.left) / (r.width || 1)) * 100;\n const y = ((e.clientY - r.top) / (r.height || 1)) * 100;\n layer.style.backgroundPosition = `${x}% ${y}%, 0 0`;\n el.style.transform = `perspective(700px) rotateY(${(x - 50) / 8}deg) rotateX(${(50 - y) / 8}deg)`;\n };\n const leave = () => {\n layer.style.backgroundPosition = '50% 50%, 0 0';\n el.style.transform = '';\n };\n el.addEventListener('pointermove', move);\n el.addEventListener('pointerleave', leave);\n return () => {\n el.removeEventListener('pointermove', move);\n el.removeEventListener('pointerleave', leave);\n leave();\n remove();\n };\n },\n },\n {\n name: 'glare-sweep',\n kind: 'card',\n description: 'A diagonal light streak sweeps across the card once.',\n defaults: { duration: 900, color: 'rgba(255,255,255,.55)' },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const [g, remove] = overlay(el, `overflow:hidden;background:linear-gradient(105deg,transparent 35%,${o.color} 50%,transparent 65%);background-size:250% 100%`);\n const a = ctx.animate(g, [{ backgroundPosition: '150% 0' }, { backgroundPosition: '-50% 0' }], { duration: o.duration, easing: 'ease-in-out' });\n if (a) a.finished.then(remove, remove);\n else remove();\n return a;\n },\n },\n {\n name: 'book-open',\n kind: 'card',\n description: 'The card opens like a book cover around its left edge, peeks and closes.',\n defaults: { angle: 35, duration: 1100 },\n run: (el, o: any, ctx) => {\n el.style.transformOrigin = 'left center';\n return ctx.animate(el, [{ transform: 'perspective(900px) rotateY(0)' }, { transform: `perspective(900px) rotateY(-${o.angle}deg)`, offset: 0.45 }, { transform: 'perspective(900px) rotateY(0)' }], { duration: o.duration, easing: 'cubic-bezier(0.34, 1.3, 0.64, 1)' });\n },\n },\n {\n name: 'card-fan',\n kind: 'card',\n description: 'The element’s children fan out like a hand of cards, then gather.',\n defaults: { spread: 14, duration: 900 },\n run: (el, o: any, ctx) => {\n const kids = Array.from(el.children) as HTMLElement[];\n const mid = (kids.length - 1) / 2;\n return all(kids.map((k, i) => ctx.animate(k, [{ transform: 'none' }, { transform: `translateX(${(i - mid) * o.spread}px) rotate(${(i - mid) * (o.spread / 2)}deg)`, offset: 0.5 }, { transform: 'none' }], { duration: o.duration, easing: 'cubic-bezier(0.34, 1.56, 0.64, 1)' })));\n },\n },\n {\n name: 'topple',\n kind: 'card',\n description: 'Tips backwards on its bottom edge and springs upright.',\n defaults: { duration: 1000 },\n run: (el, o: any, ctx) => {\n el.style.transformOrigin = 'bottom center';\n return ctx.animate(el, [{ transform: 'perspective(800px) rotateX(0)' }, { transform: 'perspective(800px) rotateX(55deg)', offset: 0.35 }, { transform: 'perspective(800px) rotateX(-12deg)', offset: 0.6 }, { transform: 'perspective(800px) rotateX(5deg)', offset: 0.8 }, { transform: 'perspective(800px) rotateX(0)' }], { duration: o.duration, easing: 'ease-out' });\n },\n },\n {\n name: 'float-tilt',\n kind: 'loop',\n description: 'Idle floating with a slow 3D sway (loop; stops under reduced motion).',\n defaults: { duration: 4200, distance: 8 },\n run: (el, o: any, ctx) => {\n const a = ctx.animate(el, [{ transform: 'translateY(0) rotateX(0) rotateY(0)' }, { transform: `translateY(-${o.distance}px) rotateX(4deg) rotateY(-5deg)` }, { transform: 'translateY(0) rotateX(0) rotateY(0)' }], { duration: o.duration, iterations: Infinity, easing: 'ease-in-out' });\n return () => a?.cancel();\n },\n },\n];\n\nexport const CLICK_FX: EffectDefinition[] = [\n {\n name: 'shockwave',\n kind: 'click',\n description: 'Two expanding rings from the click point.',\n defaults: { color: '#7c5cff', size: 160, duration: 700 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const { x, y } = origin(el, ctx);\n return all([0, 120].map((delay) => spawn(x, y, `width:${o.size}px;height:${o.size}px;margin:${-o.size / 2}px 0 0 ${-o.size / 2}px;border:3px solid ${o.color};border-radius:50%`, ctx, [{ transform: 'scale(0)', opacity: 0.9 }, { transform: 'scale(1)', opacity: 0 }], { duration: o.duration, delay, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' })));\n },\n },\n {\n name: 'ink-splash',\n kind: 'click',\n description: 'Ink blobs splatter from the click point and fade.',\n defaults: { count: 9, colors: PALETTE, duration: 800 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const { x, y } = origin(el, ctx);\n return all(Array.from({ length: o.count }, (_, i) => {\n const s = rand(6, 22);\n const ang = rand(0, Math.PI * 2);\n const d = rand(20, 70);\n return spawn(x, y, `width:${s}px;height:${s}px;margin:${-s / 2}px 0 0 ${-s / 2}px;background:${o.colors[i % o.colors.length]};border-radius:${rand(40, 50)}% ${rand(50, 60)}% ${rand(40, 60)}% ${rand(45, 55)}%`, ctx, [{ transform: 'translate(0,0) scale(.3)', opacity: 1 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d}px) scale(1)`, opacity: 0.9, offset: 0.5 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d + 8}px) scale(1.1)`, opacity: 0 }], { duration: o.duration, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' });\n }));\n },\n },\n {\n name: 'star-burst',\n kind: 'click',\n description: 'Spinning stars burst outward.',\n defaults: { count: 10, colors: ['#facc15', '#fb923c', '#f472b6'], duration: 900 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const { x, y } = origin(el, ctx);\n return all(Array.from({ length: o.count }, (_, i) => {\n const ang = (i / o.count) * Math.PI * 2;\n const d = rand(40, 80);\n const s = rand(12, 22);\n return spawn(x, y, `font-size:${s}px;line-height:1;margin:${-s / 2}px 0 0 ${-s / 2}px;color:${o.colors[i % o.colors.length]}`, ctx, [{ transform: 'translate(0,0) rotate(0) scale(.2)', opacity: 1 }, { transform: `translate(${Math.cos(ang) * d}px,${Math.sin(ang) * d}px) rotate(${rand(180, 360)}deg) scale(1)`, opacity: 0 }], { duration: o.duration, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' }, '★');\n }));\n },\n },\n {\n name: 'jelly-press',\n kind: 'click',\n description: 'The pressed element squishes like jelly and wobbles back.',\n defaults: { duration: 650 },\n run: (el, o: any, ctx) =>\n ctx.reduced ? ctx.animate(el, [{ opacity: 1 }, { opacity: 0.7 }, { opacity: 1 }], { duration: 250 }) : ctx.animate(el, [{ transform: 'scale(1,1)' }, { transform: 'scale(1.15,.85)', offset: 0.2 }, { transform: 'scale(.9,1.1)', offset: 0.4 }, { transform: 'scale(1.05,.95)', offset: 0.6 }, { transform: 'scale(.98,1.02)', offset: 0.8 }, { transform: 'scale(1,1)' }], { duration: o.duration, easing: 'ease-out' }),\n },\n {\n name: 'ring-ripple',\n kind: 'click',\n description: 'Concentric outlined rings ripple out like water.',\n defaults: { rings: 3, color: '#22d3ee', size: 120, duration: 1000 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const { x, y } = origin(el, ctx);\n return all(Array.from({ length: o.rings }, (_, i) => spawn(x, y, `width:${o.size}px;height:${o.size}px;margin:${-o.size / 2}px 0 0 ${-o.size / 2}px;border:2px solid ${o.color};border-radius:50%`, ctx, [{ transform: 'scale(.1)', opacity: 0.8 }, { transform: 'scale(1)', opacity: 0 }], { duration: o.duration, delay: i * 160, easing: 'ease-out' })));\n },\n },\n {\n name: 'emoji-rain',\n kind: 'click',\n description: 'Emoji pop up and fall around the click (pass `emoji: \"🎉✨💜\"`).',\n defaults: { emoji: '🎉✨💜🔥', count: 14, duration: 1300 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const { x, y } = origin(el, ctx);\n const chars = Array.from(String(o.emoji));\n return all(Array.from({ length: o.count }, (_, i) => {\n const dx = rand(-90, 90);\n return spawn(x, y, `font-size:${rand(16, 28)}px;line-height:1`, ctx, [{ transform: 'translate(0,0) scale(.4)', opacity: 0 }, { transform: `translate(${dx * 0.6}px,${rand(-90, -50)}px) scale(1)`, opacity: 1, offset: 0.35 }, { transform: `translate(${dx}px,${rand(40, 90)}px) rotate(${rand(-60, 60)}deg) scale(.9)`, opacity: 0 }], { duration: o.duration, delay: i * 25, easing: 'cubic-bezier(0.33, 0, 0.67, 1)' }, chars[i % chars.length]);\n }));\n },\n },\n];\n","/**\n * 5.2 — bounce & physics micro-interactions, registered through\n * `registerEffect()`. Keyframes come from a damped-spring / gravity solver\n * (`springKeyframes()`, `bounceKeyframes()`), so the motion is physical but\n * still runs on the Web Animations API (compositor, reduced-motion aware).\n * Effects: `bounce-in`, `rubber-band`, `elastic-hover`, `drop-bounce`,\n * `gravity-text`, `spring-follow`, `bell-swing`.\n */\nimport type { EffectDefinition } from '../fx/registry';\nimport { all } from './shared';\n\nexport interface SpringOptions {\n stiffness?: number;\n damping?: number;\n mass?: number;\n /** Samples (keyframes). */\n steps?: number;\n}\n\n/**\n * Sample a damped spring from 0 → 1 and return the progress values plus the\n * time (ms) it takes to settle. Pure, deterministic.\n */\nexport function solveSpring({ stiffness = 180, damping = 12, mass = 1, steps = 40 }: SpringOptions = {}): { values: number[]; duration: number } {\n const dt = 1 / 120;\n let x = 0;\n let v = 0;\n const trace: number[] = [];\n let t = 0;\n for (; t < 4; t += dt) {\n const a = (-stiffness * (x - 1) - damping * v) / mass;\n v += a * dt;\n x += v * dt;\n trace.push(x);\n if (t > 0.1 && Math.abs(x - 1) < 0.001 && Math.abs(v) < 0.01) break;\n }\n const values = Array.from({ length: steps + 1 }, (_, i) => +trace[Math.min(trace.length - 1, Math.round((i / steps) * (trace.length - 1)))].toFixed(4));\n values[0] = 0;\n values[steps] = 1;\n return { values, duration: Math.round(trace.length * dt * 1000) };\n}\n\n/** Keyframes for a property driven by a spring: `map(progress)` → keyframe. */\nexport function springKeyframes(map: (p: number) => Keyframe, spring?: SpringOptions): { frames: Keyframe[]; duration: number } {\n const { values, duration } = solveSpring(spring);\n return { frames: values.map(map), duration };\n}\n\n/** Height (0 = floor, 1 = drop height) of a ball dropped with restitution `bounce`, sampled `steps` times. */\nexport function bounceKeyframes(bounce = 0.5, steps = 48): number[] {\n // segment durations scale with sqrt(height); heights scale with bounce^2 per hop\n const hops: number[] = [1];\n let h = 1;\n while (hops.length < 6 && h > 0.01) {\n h *= bounce * bounce;\n hops.push(h);\n }\n const segT = hops.map((hh, i) => (i === 0 ? Math.sqrt(hh) : 2 * Math.sqrt(hh)));\n const total = segT.reduce((a, b) => a + b, 0);\n return Array.from({ length: steps + 1 }, (_, i) => {\n let t = (i / steps) * total;\n for (let k = 0; k < hops.length; k++) {\n if (t <= segT[k] || k === hops.length - 1) {\n const tt = Math.min(t, segT[k]);\n if (k === 0) return +(1 - (tt / segT[0]) ** 2).toFixed(4);\n const half = segT[k] / 2;\n return +(hops[k] * (1 - ((tt - half) / half) ** 2)).toFixed(4);\n }\n t -= segT[k];\n }\n return 0;\n });\n}\n\nconst fade = (el: HTMLElement, ctx: Parameters<EffectDefinition['run']>[2]) => ctx.animate(el, [{ opacity: 0 }, { opacity: 1 }], { duration: 200 });\n\nexport const PHYSICS_FX: EffectDefinition[] = [\n {\n name: 'bounce-in',\n kind: 'enter',\n description: 'Springs in from small with an overshoot (spring solver; stiffness / damping options).',\n defaults: { stiffness: 220, damping: 11, from: 0.3 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return fade(el, ctx);\n const { frames, duration } = springKeyframes((p) => ({ transform: `scale(${(o.from + (1 - o.from) * p).toFixed(4)})`, opacity: Math.min(1, p * 3) }), o);\n return ctx.animate(el, frames, { duration, easing: 'linear' });\n },\n },\n {\n name: 'rubber-band',\n kind: 'attention',\n description: 'Stretches wide, snaps back thin and settles like a rubber band.',\n defaults: { duration: 900, amount: 0.25 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const a = o.amount;\n return ctx.animate(el, [{ transform: 'scale(1,1)' }, { transform: `scale(${1 + a},${1 - a})`, offset: 0.3 }, { transform: `scale(${1 - a},${1 + a})`, offset: 0.4 }, { transform: `scale(${1 + a / 2},${1 - a / 2})`, offset: 0.5 }, { transform: `scale(${1 - a / 5},${1 + a / 5})`, offset: 0.65 }, { transform: `scale(${1 + a / 10},${1 - a / 10})`, offset: 0.75 }, { transform: 'scale(1,1)' }], { duration: o.duration });\n },\n },\n {\n name: 'elastic-hover',\n kind: 'hover',\n description: 'Hover lifts with a springy overshoot; leaving springs back (persistent; trigger=\"load\").',\n defaults: { lift: 6, scale: 1.04, stiffness: 260, damping: 10 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const to = (on: boolean) => {\n const from = on ? 0 : 1;\n const { frames, duration } = springKeyframes((p) => {\n const k = from + (on ? p : -p);\n return { transform: `translateY(${(-o.lift * k).toFixed(2)}px) scale(${(1 + (o.scale - 1) * k).toFixed(4)})` };\n }, o);\n ctx.animate(el, frames, { duration, fill: 'forwards', easing: 'linear' });\n };\n const enter = () => to(true);\n const leave = () => to(false);\n el.addEventListener('pointerenter', enter);\n el.addEventListener('pointerleave', leave);\n return () => {\n el.removeEventListener('pointerenter', enter);\n el.removeEventListener('pointerleave', leave);\n };\n },\n },\n {\n name: 'drop-bounce',\n kind: 'enter',\n description: 'Falls in under gravity and bounces to rest (`height`, `bounce` restitution 0–0.9).',\n defaults: { height: 120, bounce: 0.5, duration: 1100 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return fade(el, ctx);\n const hs = bounceKeyframes(Math.min(0.9, Math.max(0, o.bounce)));\n return ctx.animate(el, hs.map((h, i) => ({ transform: `translateY(${(-h * o.height).toFixed(1)}px)`, opacity: i === 0 ? 0 : 1 })), { duration: o.duration, easing: 'linear' });\n },\n },\n {\n name: 'gravity-text',\n kind: 'text',\n description: 'Each character drops in under gravity with a bounce, staggered (splits the text into aria-hidden spans; the label stays readable).',\n defaults: { height: 60, bounce: 0.45, duration: 900, stagger: 45 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n if (!el.dataset.usaSplit) {\n const text = el.textContent || '';\n el.setAttribute('aria-label', text);\n el.textContent = '';\n for (const ch of Array.from(text)) {\n const s = document.createElement('span');\n s.setAttribute('aria-hidden', 'true');\n s.style.display = 'inline-block';\n s.style.whiteSpace = 'pre';\n s.textContent = ch;\n el.appendChild(s);\n }\n el.dataset.usaSplit = '1';\n }\n const hs = bounceKeyframes(o.bounce, 32);\n return all((Array.from(el.children) as HTMLElement[]).map((s, i) => ctx.animate(s, hs.map((h) => ({ transform: `translateY(${(-h * o.height).toFixed(1)}px)` })), { duration: o.duration, delay: i * o.stagger, easing: 'linear', fill: 'backwards' })));\n },\n },\n {\n name: 'spring-follow',\n kind: 'cursor',\n description: 'The element springs toward the pointer while it moves over its parent, and back home on leave (persistent).',\n defaults: { stiffness: 0.12, damping: 0.75, range: 40 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n const host = el.parentElement || el;\n let tx = 0;\n let ty = 0;\n let x = 0;\n let y = 0;\n let vx = 0;\n let vy = 0;\n let raf = 0;\n const tick = () => {\n vx = (vx + (tx - x) * o.stiffness) * o.damping;\n vy = (vy + (ty - y) * o.stiffness) * o.damping;\n x += vx;\n y += vy;\n el.style.translate = `${x.toFixed(2)}px ${y.toFixed(2)}px`;\n raf = Math.abs(vx) + Math.abs(vy) + Math.abs(tx - x) + Math.abs(ty - y) > 0.05 ? requestAnimationFrame(tick) : 0;\n };\n const kick = () => {\n if (!raf) raf = requestAnimationFrame(tick);\n };\n const move = (e: PointerEvent) => {\n const r = host.getBoundingClientRect();\n const nx = (e.clientX - r.left) / (r.width || 1) - 0.5;\n const ny = (e.clientY - r.top) / (r.height || 1) - 0.5;\n tx = nx * 2 * o.range;\n ty = ny * 2 * o.range;\n kick();\n };\n const leave = () => {\n tx = ty = 0;\n kick();\n };\n host.addEventListener('pointermove', move);\n host.addEventListener('pointerleave', leave);\n return () => {\n host.removeEventListener('pointermove', move);\n host.removeEventListener('pointerleave', leave);\n cancelAnimationFrame(raf);\n el.style.translate = '';\n };\n },\n },\n {\n name: 'bell-swing',\n kind: 'attention',\n description: 'Swings from its top like a ringing bell with damped oscillation.',\n defaults: { angle: 22, stiffness: 120, damping: 4 },\n run: (el, o: any, ctx) => {\n if (ctx.reduced) return;\n el.style.transformOrigin = 'top center';\n const { frames, duration } = springKeyframes((p) => ({ transform: `rotate(${(o.angle * (1 - p)).toFixed(2)}deg)` }), { stiffness: o.stiffness, damping: o.damping, steps: 48 });\n frames[0] = { transform: 'rotate(0deg)' };\n return ctx.animate(el, frames, { duration: Math.min(duration, 2400), easing: 'linear' });\n },\n },\n];\n","/**\n * use-scroll-animate/components/effects — the 5.x effect packs, all\n * registered through `registerEffect()` (5.0) and playable with\n * `playEffect()`, `bindEffect()` or `<usa-fx>`. Kept out of\n * `use-scroll-animate/components` / `components/lite` so their size budgets\n * hold; the UMD bundle registers everything.\n *\n * ```ts\n * import { registerAllEffects } from 'use-scroll-animate/components/effects';\n * registerAllEffects();\n * ```\n */\nimport { registerEffects, registerBuiltinEffects } from '../fx/index';\nimport type { EffectDefinition } from '../fx/registry';\nimport { CARD_FX, CLICK_FX } from './cards-click';\nimport { PHYSICS_FX } from './physics';\n\nexport { CARD_FX, CLICK_FX, PHYSICS_FX };\nexport { solveSpring, springKeyframes, bounceKeyframes } from './physics';\nexport type { SpringOptions } from './physics';\nexport { fxLayer } from './shared';\n\n/** The effect packs by version, in release order. */\nexport const EFFECT_PACKS: Record<string, EffectDefinition[]> = {\n 'cards-click': [...CARD_FX, ...CLICK_FX],\n physics: PHYSICS_FX,\n};\n\n/** 5.1: card & click effects 2.0. */\nexport function registerCardClickEffects(): void {\n registerEffects(EFFECT_PACKS['cards-click']);\n}\n\n/** 5.2: bounce & physics micro-interactions. */\nexport function registerPhysicsEffects(): void {\n registerEffects(EFFECT_PACKS.physics);\n}\n\n/** Register the built-ins and every pack (idempotent). */\nexport function registerAllEffects(): void {\n registerBuiltinEffects();\n for (const defs of Object.values(EFFECT_PACKS)) registerEffects(defs);\n}\n"],"names":["registerEffects","registerBuiltinEffects"],"mappings":";;;;;;;;AAGA,IAAI,KAAK,GAAuB,IAAI;AACpC;SACgB,OAAO,GAAA;IACrB,IAAI,KAAK,EAAE,WAAW;AAAE,QAAA,OAAO,KAAK;AACpC,IAAA,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;AACrC,IAAA,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC;AACzC,IAAA,KAAK,CAAC,YAAY,CAAC,mBAAmB,EAAE,EAAE,CAAC;AAC3C,IAAA,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,8FAA8F;AACpH,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,IAAA,OAAO,KAAK;AACd;AAEA;AACM,SAAU,MAAM,CAAC,EAAW,EAAE,GAAkB,EAAA;AACpD,IAAA,MAAM,CAAC,GAAG,GAAG,CAAC,KAA8C;AAC5D,IAAA,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,EAAE;AACpC,IAAA,OAAO,CAAC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