use-scroll-animate 6.0.0 → 6.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/CHANGELOG.md +29 -0
- package/README.md +39 -1
- package/README_ja.md +31 -0
- package/README_zh.md +31 -0
- package/dist/chunks/{core-mV_TPgG_.js → core-BVQW34aX.js} +10 -202
- package/dist/chunks/core-BVQW34aX.js.map +1 -0
- package/dist/chunks/{core-qpECfEkb.cjs → core-BYLtO0Po.cjs} +13 -209
- package/dist/chunks/core-BYLtO0Po.cjs.map +1 -0
- package/dist/chunks/presets-BJ09NeTo.js +226 -0
- package/dist/chunks/presets-BJ09NeTo.js.map +1 -0
- package/dist/chunks/presets-D2ksQNzJ.cjs +233 -0
- package/dist/chunks/presets-D2ksQNzJ.cjs.map +1 -0
- package/dist/chunks/{stagger-CLc3j58T.cjs → stagger-CvhYlKrF.cjs} +2 -2
- package/dist/chunks/{stagger-CLc3j58T.cjs.map → stagger-CvhYlKrF.cjs.map} +1 -1
- package/dist/chunks/{stagger-BFAhKknX.js → stagger-Dh4V-OL0.js} +2 -2
- package/dist/chunks/{stagger-BFAhKknX.js.map → stagger-Dh4V-OL0.js.map} +1 -1
- package/dist/components/lite.cjs +4 -0
- package/dist/components/lite.cjs.map +1 -1
- package/dist/components/lite.js +4 -0
- package/dist/components/lite.js.map +1 -1
- package/dist/components/reveal.cjs +4 -0
- package/dist/components/reveal.cjs.map +1 -1
- package/dist/components/reveal.js +4 -0
- package/dist/components/reveal.js.map +1 -1
- package/dist/components.umd.js +2 -2
- package/dist/components.umd.js.map +1 -1
- package/dist/element.cjs +2 -1
- package/dist/element.cjs.map +1 -1
- package/dist/element.d.cts +16 -2
- package/dist/element.d.ts +16 -2
- package/dist/element.js +2 -1
- package/dist/element.js.map +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/element.umd.js.map +1 -1
- package/dist/index.cjs +22 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -9
- package/dist/index.d.ts +34 -9
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/presets/extended.cjs +243 -0
- package/dist/presets/extended.cjs.map +1 -0
- package/dist/presets/extended.d.cts +37 -0
- package/dist/presets/extended.d.ts +37 -0
- package/dist/presets/extended.js +239 -0
- package/dist/presets/extended.js.map +1 -0
- package/dist/presets-extended.umd.js +2 -0
- package/dist/presets-extended.umd.js.map +1 -0
- package/dist/react.cjs +3 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +16 -2
- package/dist/react.d.ts +16 -2
- package/dist/react.js +3 -2
- package/dist/react.js.map +1 -1
- package/dist/solid.cjs +3 -2
- package/dist/solid.cjs.map +1 -1
- package/dist/solid.d.cts +16 -2
- package/dist/solid.d.ts +16 -2
- package/dist/solid.js +3 -2
- package/dist/solid.js.map +1 -1
- package/dist/svelte.cjs +3 -2
- package/dist/svelte.cjs.map +1 -1
- package/dist/svelte.d.cts +16 -2
- package/dist/svelte.d.ts +16 -2
- package/dist/svelte.js +3 -2
- package/dist/svelte.js.map +1 -1
- package/dist/vue.cjs +3 -2
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d.cts +16 -2
- package/dist/vue.d.ts +16 -2
- package/dist/vue.js +3 -2
- package/dist/vue.js.map +1 -1
- package/docs/API.md +7 -2
- package/docs/ROADMAP.md +12 -11
- package/docs/components.md +1 -1
- package/docs/presets.md +310 -0
- package/package.json +15 -2
- package/dist/chunks/core-mV_TPgG_.js.map +0 -1
- package/dist/chunks/core-qpECfEkb.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.1.0] - 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Added — Scroll presets 2.0
|
|
13
|
+
- **181 new scroll-reveal presets** (214 in total) in a separate, tree-shakeable entry: `import 'use-scroll-animate/presets/extended'` registers them on import (exports `EXTENDED_PRESETS`, `EXTENDED_PRESET_CATEGORIES`, `registerExtendedPresets()`); `<script>` pages load `dist/presets-extended.umd.js` after (or before) `dist/index.umd.js`. ≈ 4.7 kB gzip; the core bundle stays within its budget (UMD 8.81 kB / 9 kB).
|
|
14
|
+
- Fade (+14: small/large distances, diagonals, settle, half) · Zoom & scale (+18: zoom-in/out up/down/left/right, from zero / 2×, zoom-bounce, origin-aware scale-x/y, stretch) · Flip 3D (+18: reverse, half turn, diagonal, edge flips, door-open, unfold, fold, bounce flips, swing-in) · Slide (+16: overshoot slides, back-in ×4, light-speed ×2, rise / sink, float) · Rotate & skew (+16: roll, spiral, spin, corner pivots, skew / shear, twist, tilt) · Blur & mask (+12: directional blur, zoom blur, motion blur, mask-up/down/left/right) · Clip reveal (+17: circles from edges/corner, ellipse, diamond, curtains, box, pill, blinds, diagonal & slanted wipes) · **Bounce & elastic** (+17: bounce-in ×5, elastic, rubber band, jello, wobble, tada, heartbeat, drop, pop, squash & stretch, shake, swing) · **Color & light** (+14: brightness, darken, colour / saturate / hue / sepia / invert / contrast / exposure / vintage, bloom, shadow lift, neon glow, glow) · **Depth & perspective** (+10) · **Glitch & special** (+9: glitch, colour glitch, typewriter, typewriter lines, hinge, flicker, scan, materialize, teleport) · **Stagger-ready** (+8 `stagger-*`) · **Scroll-linked** (+12 `scrub-*`: parallax drift, rotate / spin / scale / shrink / tilt on scroll, horizontal pan, sticky fade, focus through, wipe — for `engine: 'css'` with `viewRange: ['cover 0%', 'cover 100%']`).
|
|
15
|
+
- Only `transform`, `opacity`, `filter` and `clip-path` are animated (plus a constant `transform-origin`); reduced motion shows the element without moving it.
|
|
16
|
+
- Presets may carry **intermediate keyframes** (`frames: [{ offset, …props }]`, optional per-keyframe `easing`), played between `from` and `to` by the JS and native engines and reversed for `exit`. Custom `{ from, to, frames }` animations work too.
|
|
17
|
+
- `registerPresets(map)` and `reversePreset(p)` in the main entry. `PRESETS` is now one table per page shared through `Symbol.for('use-scroll-animate.presets')`, so the ESM entries, the UMD bundle and the extended set see each other's presets.
|
|
18
|
+
- `<usa-reveal effect>` / `<usa-stagger effect>` accept any registered preset name (their own effects keep priority).
|
|
19
|
+
- Types: `CorePreset`, `ExtendedPreset` (`AnimationPreset` = both), `PresetKeyframes`, `AnimationFrame`.
|
|
20
|
+
|
|
21
|
+
### Showcase
|
|
22
|
+
- The Animation Store lists all 214 presets (**227 items**, up from 46) in 14 preset categories with filter chips, live demos and copy-paste code; extended presets add the `presets/extended` import (or the CDN script) to every code tab. Scroll-linked presets demo on the native view timeline; stagger-ready presets demo on a row of items; the keyframes panel shows intermediate keyframe counts. The demo page loads the extended set too.
|
|
23
|
+
|
|
24
|
+
### Docs
|
|
25
|
+
- New `docs/presets.md` (every preset by category), README (EN / 中文 / 日本語) "Scroll presets 2.0" section, API reference, `<usa-reveal>` docs. `docs/ROADMAP.md`: 6.1 is Scroll presets 2.0; the previous 6.1–6.9 plans move to 6.2–6.10.
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
- New `test/presets-extended.test.ts`: every preset (core + extended) has interpolable keyframes (same properties and function lists from → frames → to, GPU-friendly properties, ordered offsets), type union / categories in sync, shared registry (ESM + UMD source), frames through `observe()`, reduced motion, `<usa-reveal>` lookup, store count ≥ 160, recipes and generated code.
|
|
29
|
+
|
|
30
|
+
## [6.0.1] - 2026-10-08
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
- **Showcase — components gallery overflowed phones horizontally (~48 px at 390 px wide).** The header's six nav items (Store · Playground · Story · language · theme · GitHub) could not shrink, so the whole page scrolled sideways and the scroll-progress bar ran past the edge. On screens ≤ 480 px the bar now shrinks and tightens to one row (the sticky filter bar keeps its offset): the duplicate “Animation Store” link is hidden (the logo already links to the store) along with the “Components” badge, and below 375 px the GitHub icon moves to the footer link only. Checked in headless Chromium at 320 / 360 / 390 / 414 / 480 px in English and Chinese: `scrollWidth` equals the viewport width and every remaining header control is on screen.
|
|
34
|
+
- Crawl of all showcase pages (`/showcase/`, `components.html`, `playground.html`, `story.html`, desktop 1280 px + mobile 390 px): no other console errors, failed requests or overflow found.
|
|
35
|
+
|
|
36
|
+
### Tests
|
|
37
|
+
- New `test/fixes-6-0-1.test.ts` regression suite.
|
|
38
|
+
|
|
10
39
|
## [6.0.0] - 2026-10-08
|
|
11
40
|
|
|
12
41
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -28,6 +28,43 @@ In 2025, performance is everything. Traditional scroll animation libraries often
|
|
|
28
28
|
- ♿ **Accessible**: Respects `prefers-reduced-motion` out of the box (content is shown immediately, no entrance or parallax motion).
|
|
29
29
|
- 🖥️ **SSR-safe**: Importing (and even calling) the API on the server is a no-op.
|
|
30
30
|
|
|
31
|
+
## Scroll presets 2.0 (v6.1) 🎞️
|
|
32
|
+
|
|
33
|
+
**214 scroll-reveal presets**: the 33 core presets plus **181 extended presets** in a separate, tree-shakeable entry (≈ 4.7 kB gzip; the core bundle is unchanged within its budget). Browse them all with a live demo and copy-paste code in the [Animation Store](https://harrisoncn.github.io/use-scroll-animate/showcase/) — every preset, with its keyframes, is listed in [docs/presets.md](./docs/presets.md).
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import ScrollAnimate from 'use-scroll-animate';
|
|
37
|
+
import 'use-scroll-animate/presets/extended'; // registers the extended set on import
|
|
38
|
+
|
|
39
|
+
ScrollAnimate.observe('.card', { animation: 'bounce-in-up', duration: 900 });
|
|
40
|
+
ScrollAnimate.observe('.hero img', { animation: 'scrub-shrink', engine: 'css', viewRange: ['cover 0%', 'cover 100%'] });
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<script src="https://unpkg.com/use-scroll-animate@6/dist/index.umd.js"></script>
|
|
45
|
+
<script src="https://unpkg.com/use-scroll-animate@6/dist/presets-extended.umd.js"></script>
|
|
46
|
+
<div data-sa data-sa-animation="clip-diamond">…</div>
|
|
47
|
+
<script>ScrollAnimate.default.init();</script>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The names work everywhere a preset does: `animation` / `exit`, `data-sa-animation`, `useScrollAnimate` and the other framework adapters, `<scroll-animate animation>`, and `<usa-reveal effect>` / `<usa-stagger effect>`. Only `transform`, `opacity`, `filter` and `clip-path` are animated, and nothing moves under `prefers-reduced-motion`. Presets can now carry intermediate `frames` (overshoot, bounce, glitch) — so can your own: `registerPresets({ 'my-pop': { from, to, frames } })`.
|
|
51
|
+
|
|
52
|
+
| Category | Total | New in 6.1 |
|
|
53
|
+
|---|---:|---|
|
|
54
|
+
| Fade | 19 | `fade-in-up-sm` · `fade-in-down-sm` · `fade-in-left-sm` · `fade-in-right-sm` · `fade-in-up-lg` · `fade-in-down-lg` · `fade-in-left-lg` · `fade-in-right-lg` · `fade-in-up-left` · `fade-in-up-right` · `fade-in-down-left` · `fade-in-down-right` · `fade-in-scale` · `fade-in-half` |
|
|
55
|
+
| Zoom & scale | 23 | `zoom-in-up` · `zoom-in-down` · `zoom-in-left` · `zoom-in-right` · `zoom-out-up` · `zoom-out-down` · `zoom-out-left` · `zoom-out-right` · `zoom-in-big` · `zoom-out-big` · `zoom-bounce` · `zoom-in-rotate` · `scale-x-left` · `scale-x-right` · `scale-y-top` · `scale-y-bottom` · `stretch-x` · `stretch-y` |
|
|
56
|
+
| Flip 3D | 22 | `flip-x-reverse` · `flip-y-reverse` · `flip-y-full` · `flip-diagonal` · `flip-diagonal-reverse` · `flip-left` · `flip-right` · `unfold-down` · `unfold-up` · `door-open-left` · `door-open-right` · `fold-in` · `flip-x-bounce` · `flip-y-bounce` · `swing-in-top` · `swing-in-bottom` · `swing-in-left` · `swing-in-right` |
|
|
57
|
+
| Slide | 20 | `slide-up-spring` · `slide-down-spring` · `slide-left-spring` · `slide-right-spring` · `slide-up-sm` · `slide-down-sm` · `back-in-up` · `back-in-down` · `back-in-left` · `back-in-right` · `light-speed-in-left` · `light-speed-in-right` · `rise-in` · `sink-in` · `float-in-up` · `float-in-down` |
|
|
58
|
+
| Rotate & skew | 20 | `roll-in-left` · `roll-in-right` · `spiral-in` · `spiral-in-reverse` · `spin-in` · `rotate-in-up-left` · `rotate-in-up-right` · `rotate-in-down-left` · `rotate-in-down-right` · `skew-in-left` · `skew-in-y` · `shear-in` · `shear-in-reverse` · `twist-in` · `tilt-in-left` · `tilt-in-right` |
|
|
59
|
+
| Blur & mask | 14 | `blur-in-down` · `blur-in-left` · `blur-in-right` · `blur-in-strong` · `blur-in-zoom` · `blur-in-scale` · `blur-in-x` · `mask-up` · `mask-down` · `mask-left` · `mask-right` · `blur-mask-up` |
|
|
60
|
+
| Clip reveal | 22 | `clip-circle-top` · `clip-circle-bottom` · `clip-circle-left` · `clip-circle-right` · `clip-circle-corner` · `clip-ellipse` · `clip-diamond` · `clip-split-x` · `clip-split-y` · `clip-box` · `clip-pill` · `clip-blinds` · `clip-blinds-x` · `clip-diagonal` · `clip-diagonal-reverse` · `clip-slant-right` · `clip-slant-left` |
|
|
61
|
+
| Bounce & elastic | 17 | `bounce-in` · `bounce-in-up` · `bounce-in-down` · `bounce-in-left` · `bounce-in-right` · `elastic-in` · `elastic-in-x` · `rubber-in` · `jello-in` · `wobble-in` · `tada-in` · `heartbeat-in` · `drop-in` · `pop-in` · `squash-in` · `shake-in` · `swing-in` |
|
|
62
|
+
| Color & light | 14 | `brightness-in` · `darken-in` · `color-in` · `saturate-in` · `hue-in` · `sepia-in` · `invert-in` · `contrast-in` · `exposure-in` · `vintage-in` · `blur-bright-in` · `shadow-lift` · `neon-glow-in` · `glow-in` |
|
|
63
|
+
| Depth & perspective | 10 | `perspective-in-up` · `perspective-in-down` · `perspective-in-left` · `perspective-in-right` · `depth-push` · `depth-pull` · `depth-in-up` · `swoop-in-left` · `swoop-in-right` · `card-tilt-in` |
|
|
64
|
+
| Glitch & special | 9 | `glitch-in` · `glitch-in-color` · `typewriter` · `typewriter-lines` · `hinge-in` · `flicker-in` · `scan-in` · `materialize` · `teleport-in` |
|
|
65
|
+
| Stagger-ready | 8 | `stagger-fade-up` · `stagger-pop` · `stagger-rise` · `stagger-slide` · `stagger-flip` · `stagger-blur` · `stagger-zoom` · `stagger-drop` |
|
|
66
|
+
| Scroll-linked | 12 | `scrub-parallax-up` · `scrub-parallax-down` · `scrub-rotate` · `scrub-spin` · `scrub-scale` · `scrub-shrink` · `scrub-pan-left` · `scrub-pan-right` · `scrub-tilt` · `scrub-fade-through` · `scrub-blur-through` · `scrub-reveal-x` |
|
|
67
|
+
|
|
31
68
|
## Animated components (v2.2+) 🧩
|
|
32
69
|
|
|
33
70
|
**30 dependency-free animated Web Components** (`<usa-*>`) in six categories — for **web pages and Windows desktop apps** (Electron, Tauri, WebView2 in WinUI/WPF/WinForms, PWAs). Custom Elements + CSS + Web Animations only: tree-shakable, SSR-safe, `prefers-reduced-motion` everywhere. **[Live gallery](https://harrisoncn.github.io/use-scroll-animate/showcase/components.html)** · [Component docs](./docs/components.md) · [Windows apps guide](./docs/windows-apps.md) · [Next / Astro / React / Vue](./docs/frameworks-ssr.md) · [Accessibility](./docs/accessibility.md)
|
|
@@ -80,6 +117,7 @@ Whole bundle ≈ 22 kB gzip (JS + CSS); one category 3.5–6.4 kB; a single comp
|
|
|
80
117
|
- 📖 [API reference](./docs/API.md) — every export, option, attribute and config key
|
|
81
118
|
- 🧩 [Animated components](./docs/components.md) — every `<usa-*>` element, by category · [Windows apps guide](./docs/windows-apps.md) (Electron, Tauri, WebView2, PWA)
|
|
82
119
|
- 🎛️ [Demo / preset playground](./demo/index.html) — every preset clickable, no build step (open `demo/index.html` from a clone)
|
|
120
|
+
- 🎞️ [Preset reference](./docs/presets.md) — all 214 presets by category (33 core + 181 extended)
|
|
83
121
|
- 🔁 Migration guides: [from AOS](./docs/migration-from-aos.md) · [from GSAP ScrollTrigger](./docs/migration-from-gsap-scrolltrigger.md)
|
|
84
122
|
- ⚠️ [Upgrading to 2.0](./docs/deprecations.md) — what 2.0 removed and what replaces it (also the MIGRATION section of the [CHANGELOG](./CHANGELOG.md))
|
|
85
123
|
|
|
@@ -237,7 +275,7 @@ We've added high-quality physics-based easing presets:
|
|
|
237
275
|
|
|
238
276
|
Every option is also available as a data attribute: `data-sa-animation`, `data-sa-duration`, `data-sa-delay`, `data-sa-easing`, `data-sa-threshold`, `data-sa-root-margin`, `data-sa-once`, `data-sa-repeat`, `data-sa-offset`, `data-sa-stagger`, `data-sa-progress`, `data-sa-progress-var` (bare attribute = `--sa-progress`), `data-sa-engine`, `data-sa-exit` (bare = `true`, or a preset), `data-sa-view-range` (`"entry 0%, cover 40%"`).
|
|
239
277
|
|
|
240
|
-
**Presets:** `fade-in`, `fade-in-up|down|left|right`, `zoom-in`, `zoom-out`, `scale-up`, `flip-x`, `flip-y`, `flip-up`, `flip-down`, `slide-up|down|left|right`, `bounce`, `rotate-in`, `rotate-left`, `rotate-right`, `blur-in`, `blur-in-up`, `skew-in`, `scale-x`, `scale-y`, `clip-up|down|left|right`, `clip-circle`, `shimmer`, `pulse`, `swing`. Combine them with an array, e.g. `['fade-in', 'clip-up']`.
|
|
278
|
+
**Presets (33 core):** `fade-in`, `fade-in-up|down|left|right`, `zoom-in`, `zoom-out`, `scale-up`, `flip-x`, `flip-y`, `flip-up`, `flip-down`, `slide-up|down|left|right`, `bounce`, `rotate-in`, `rotate-left`, `rotate-right`, `blur-in`, `blur-in-up`, `skew-in`, `scale-x`, `scale-y`, `clip-up|down|left|right`, `clip-circle`, `shimmer`, `pulse`, `swing`. Combine them with an array, e.g. `['fade-in', 'clip-up']`. **+ 181 extended presets** with `import 'use-scroll-animate/presets/extended'` — see *Scroll presets 2.0* above and [docs/presets.md](./docs/presets.md).
|
|
241
279
|
|
|
242
280
|
**Global config** (`createScrollAnimate(config)` / `configure()`): `defaultAnimation`, `defaultDuration`, `defaultDelay`, `defaultEasing`, `defaultThreshold`, `defaultRootMargin`, `defaultRepeat`, `defaultOnce`, `defaultOffset`, `hiddenClass`, `visibleClass`, `useClassNames`, `disabled`, `root`, `autoUnregister` (default `true`), `defaultEngine` (default `'auto'`).
|
|
243
281
|
|
package/README_ja.md
CHANGED
|
@@ -23,6 +23,36 @@
|
|
|
23
23
|
- 🧩 **フレームワークに依存しない**:Vanilla JS、React、Vue、Svelteなどとシームレスに動作。一流の React Hooks と Vue Composables を内蔵。
|
|
24
24
|
- ♿ **アクセシブル**:`prefers-reduced-motion` を標準でサポート。
|
|
25
25
|
|
|
26
|
+
## スクロールプリセット 2.0(v6.1)🎞️
|
|
27
|
+
|
|
28
|
+
**214 種類のスクロール入場プリセット**:コア 33 種 + **拡張 181 種**。拡張セットは独立したツリーシェイク可能なエントリ(gzip 約 4.7 kB、コアのサイズは予算内のまま)です。[アニメーションストア](https://harrisoncn.github.io/use-scroll-animate/showcase/) でライブデモとコードのコピーができ、全プリセットとキーフレームは [docs/presets.md](./docs/presets.md) に一覧があります。
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import ScrollAnimate from 'use-scroll-animate';
|
|
32
|
+
import 'use-scroll-animate/presets/extended'; // import するだけで登録
|
|
33
|
+
|
|
34
|
+
ScrollAnimate.observe('.card', { animation: 'bounce-in-up', duration: 900 });
|
|
35
|
+
ScrollAnimate.observe('.hero img', { animation: 'scrub-shrink', engine: 'css', viewRange: ['cover 0%', 'cover 100%'] });
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
ビルドなしのページでは `dist/index.umd.js` の後に `dist/presets-extended.umd.js`(自動登録)を読み込みます。プリセット名は `animation` / `exit`、`data-sa-animation`、`useScrollAnimate` などのフレームワーク連携、`<scroll-animate animation>`、`<usa-reveal effect>` / `<usa-stagger effect>` で使えます。アニメーションするのは `transform`・`opacity`・`filter`・`clip-path` のみで、reduced motion 時は動きません。プリセットは中間キーフレーム `frames`(オーバーシュート、バウンス、グリッチ)を持てるようになり、独自プリセットも `registerPresets({ 'my-pop': { from, to, frames } })` で登録できます。
|
|
39
|
+
|
|
40
|
+
| カテゴリ | 合計 | 6.1 で追加 |
|
|
41
|
+
|---|---:|---|
|
|
42
|
+
| フェード | 19 | `fade-in-up-sm` · `fade-in-down-sm` · `fade-in-left-sm` · `fade-in-right-sm` · `fade-in-up-lg` · `fade-in-down-lg` · `fade-in-left-lg` · `fade-in-right-lg` · `fade-in-up-left` · `fade-in-up-right` · `fade-in-down-left` · `fade-in-down-right` · `fade-in-scale` · `fade-in-half` |
|
|
43
|
+
| ズーム・スケール | 23 | `zoom-in-up` · `zoom-in-down` · `zoom-in-left` · `zoom-in-right` · `zoom-out-up` · `zoom-out-down` · `zoom-out-left` · `zoom-out-right` · `zoom-in-big` · `zoom-out-big` · `zoom-bounce` · `zoom-in-rotate` · `scale-x-left` · `scale-x-right` · `scale-y-top` · `scale-y-bottom` · `stretch-x` · `stretch-y` |
|
|
44
|
+
| 3D フリップ | 22 | `flip-x-reverse` · `flip-y-reverse` · `flip-y-full` · `flip-diagonal` · `flip-diagonal-reverse` · `flip-left` · `flip-right` · `unfold-down` · `unfold-up` · `door-open-left` · `door-open-right` · `fold-in` · `flip-x-bounce` · `flip-y-bounce` · `swing-in-top` · `swing-in-bottom` · `swing-in-left` · `swing-in-right` |
|
|
45
|
+
| スライド | 20 | `slide-up-spring` · `slide-down-spring` · `slide-left-spring` · `slide-right-spring` · `slide-up-sm` · `slide-down-sm` · `back-in-up` · `back-in-down` · `back-in-left` · `back-in-right` · `light-speed-in-left` · `light-speed-in-right` · `rise-in` · `sink-in` · `float-in-up` · `float-in-down` |
|
|
46
|
+
| 回転・スキュー | 20 | `roll-in-left` · `roll-in-right` · `spiral-in` · `spiral-in-reverse` · `spin-in` · `rotate-in-up-left` · `rotate-in-up-right` · `rotate-in-down-left` · `rotate-in-down-right` · `skew-in-left` · `skew-in-y` · `shear-in` · `shear-in-reverse` · `twist-in` · `tilt-in-left` · `tilt-in-right` |
|
|
47
|
+
| ブラー・マスク | 14 | `blur-in-down` · `blur-in-left` · `blur-in-right` · `blur-in-strong` · `blur-in-zoom` · `blur-in-scale` · `blur-in-x` · `mask-up` · `mask-down` · `mask-left` · `mask-right` · `blur-mask-up` |
|
|
48
|
+
| クリップ | 22 | `clip-circle-top` · `clip-circle-bottom` · `clip-circle-left` · `clip-circle-right` · `clip-circle-corner` · `clip-ellipse` · `clip-diamond` · `clip-split-x` · `clip-split-y` · `clip-box` · `clip-pill` · `clip-blinds` · `clip-blinds-x` · `clip-diagonal` · `clip-diagonal-reverse` · `clip-slant-right` · `clip-slant-left` |
|
|
49
|
+
| バウンス・弾性 | 17 | `bounce-in` · `bounce-in-up` · `bounce-in-down` · `bounce-in-left` · `bounce-in-right` · `elastic-in` · `elastic-in-x` · `rubber-in` · `jello-in` · `wobble-in` · `tada-in` · `heartbeat-in` · `drop-in` · `pop-in` · `squash-in` · `shake-in` · `swing-in` |
|
|
50
|
+
| 色・光 | 14 | `brightness-in` · `darken-in` · `color-in` · `saturate-in` · `hue-in` · `sepia-in` · `invert-in` · `contrast-in` · `exposure-in` · `vintage-in` · `blur-bright-in` · `shadow-lift` · `neon-glow-in` · `glow-in` |
|
|
51
|
+
| 奥行き・遠近 | 10 | `perspective-in-up` · `perspective-in-down` · `perspective-in-left` · `perspective-in-right` · `depth-push` · `depth-pull` · `depth-in-up` · `swoop-in-left` · `swoop-in-right` · `card-tilt-in` |
|
|
52
|
+
| グリッチ・特殊 | 9 | `glitch-in` · `glitch-in-color` · `typewriter` · `typewriter-lines` · `hinge-in` · `flicker-in` · `scan-in` · `materialize` · `teleport-in` |
|
|
53
|
+
| スタッガー向け | 8 | `stagger-fade-up` · `stagger-pop` · `stagger-rise` · `stagger-slide` · `stagger-flip` · `stagger-blur` · `stagger-zoom` · `stagger-drop` |
|
|
54
|
+
| スクロール連動 | 12 | `scrub-parallax-up` · `scrub-parallax-down` · `scrub-rotate` · `scrub-spin` · `scrub-scale` · `scrub-shrink` · `scrub-pan-left` · `scrub-pan-right` · `scrub-tilt` · `scrub-fade-through` · `scrub-blur-through` · `scrub-reveal-x` |
|
|
55
|
+
|
|
26
56
|
## アニメーションコンポーネント(v2.2)🧩
|
|
27
57
|
|
|
28
58
|
依存ゼロの**アニメーション Web Components 30 種**(`<usa-*>`)を 6 カテゴリで提供。**Web ページと Windows デスクトップアプリ**(Electron、Tauri、WinUI/WPF/WinForms の WebView2、PWA)の両方で動作します。Custom Elements + CSS + Web Animations のみ、ツリーシェイク可能、SSR セーフ、`prefers-reduced-motion` 対応。**[ライブギャラリー](https://harrisoncn.github.io/use-scroll-animate/showcase/components.html)** · [コンポーネント文書](./docs/components.md)(英語)· [Windows アプリガイド](./docs/windows-apps.md)(英語)
|
|
@@ -57,6 +87,7 @@ defineComponents(); // カテゴリ単位: import { defineTextComponents } from
|
|
|
57
87
|
|
|
58
88
|
## ドキュメント
|
|
59
89
|
|
|
90
|
+
- [プリセット一覧](./docs/presets.md)(全 214 種、英語)
|
|
60
91
|
- [API リファレンス](./docs/API.md)(英語)· [デモ](./demo/index.html)(全プリセットをクリックで再生、ビルド不要)
|
|
61
92
|
- 移行ガイド:[AOS から](./docs/migration-from-aos.md) · [GSAP ScrollTrigger から](./docs/migration-from-gsap-scrolltrigger.md)
|
|
62
93
|
- [2.0 へのアップグレード](./docs/deprecations.md):`createReactHooks` / `createVueComposables` は `use-scroll-animate/react` / `/vue` からのみ。`dist/index.mjs`・`dist/index.esm.js`・`dist/types/*`・`dist/*` ディープインポートは削除、デフォルトエンジンは `'auto'`。CDN の `dist/index.umd.js` は変更なし。詳細は [CHANGELOG](./CHANGELOG.md) の MIGRATION。
|
package/README_zh.md
CHANGED
|
@@ -25,6 +25,36 @@
|
|
|
25
25
|
- 🧩 **框架无关**:完美支持原生 JS、React、Vue、Svelte 等。内置一流的 React Hooks 和 Vue Composables。
|
|
26
26
|
- ♿ **无障碍**:原生支持 `prefers-reduced-motion`。
|
|
27
27
|
|
|
28
|
+
## 滚动预设 2.0(v6.1)🎞️
|
|
29
|
+
|
|
30
|
+
**214 个滚动入场预设**:33 个核心预设 + **181 个扩展预设**,扩展集位于独立、可摇树的入口(gzip 约 4.7 kB;核心包体积不变、仍在预算内)。在 [动画商店](https://harrisoncn.github.io/use-scroll-animate/showcase/) 中可实时预览并复制代码;全部预设及其关键帧见 [docs/presets.md](./docs/presets.md)。
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import ScrollAnimate from 'use-scroll-animate';
|
|
34
|
+
import 'use-scroll-animate/presets/extended'; // 导入即注册扩展预设
|
|
35
|
+
|
|
36
|
+
ScrollAnimate.observe('.card', { animation: 'bounce-in-up', duration: 900 });
|
|
37
|
+
ScrollAnimate.observe('.hero img', { animation: 'scrub-shrink', engine: 'css', viewRange: ['cover 0%', 'cover 100%'] });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
无构建页面:先加载 `dist/index.umd.js`,再加载 `dist/presets-extended.umd.js`(自动注册)。预设名可用于 `animation` / `exit`、`data-sa-animation`、`useScrollAnimate` 等框架适配器、`<scroll-animate animation>` 以及 `<usa-reveal effect>` / `<usa-stagger effect>`。只动画 `transform`、`opacity`、`filter`、`clip-path`,开启“减少动态效果”时不播放。预设现在支持中间关键帧 `frames`(过冲、弹跳、故障),自定义预设同样可用:`registerPresets({ 'my-pop': { from, to, frames } })`。
|
|
41
|
+
|
|
42
|
+
| 分类 | 总数 | 6.1 新增 |
|
|
43
|
+
|---|---:|---|
|
|
44
|
+
| 淡入 | 19 | `fade-in-up-sm` · `fade-in-down-sm` · `fade-in-left-sm` · `fade-in-right-sm` · `fade-in-up-lg` · `fade-in-down-lg` · `fade-in-left-lg` · `fade-in-right-lg` · `fade-in-up-left` · `fade-in-up-right` · `fade-in-down-left` · `fade-in-down-right` · `fade-in-scale` · `fade-in-half` |
|
|
45
|
+
| 缩放 | 23 | `zoom-in-up` · `zoom-in-down` · `zoom-in-left` · `zoom-in-right` · `zoom-out-up` · `zoom-out-down` · `zoom-out-left` · `zoom-out-right` · `zoom-in-big` · `zoom-out-big` · `zoom-bounce` · `zoom-in-rotate` · `scale-x-left` · `scale-x-right` · `scale-y-top` · `scale-y-bottom` · `stretch-x` · `stretch-y` |
|
|
46
|
+
| 3D 翻转 | 22 | `flip-x-reverse` · `flip-y-reverse` · `flip-y-full` · `flip-diagonal` · `flip-diagonal-reverse` · `flip-left` · `flip-right` · `unfold-down` · `unfold-up` · `door-open-left` · `door-open-right` · `fold-in` · `flip-x-bounce` · `flip-y-bounce` · `swing-in-top` · `swing-in-bottom` · `swing-in-left` · `swing-in-right` |
|
|
47
|
+
| 滑入 | 20 | `slide-up-spring` · `slide-down-spring` · `slide-left-spring` · `slide-right-spring` · `slide-up-sm` · `slide-down-sm` · `back-in-up` · `back-in-down` · `back-in-left` · `back-in-right` · `light-speed-in-left` · `light-speed-in-right` · `rise-in` · `sink-in` · `float-in-up` · `float-in-down` |
|
|
48
|
+
| 旋转与倾斜 | 20 | `roll-in-left` · `roll-in-right` · `spiral-in` · `spiral-in-reverse` · `spin-in` · `rotate-in-up-left` · `rotate-in-up-right` · `rotate-in-down-left` · `rotate-in-down-right` · `skew-in-left` · `skew-in-y` · `shear-in` · `shear-in-reverse` · `twist-in` · `tilt-in-left` · `tilt-in-right` |
|
|
49
|
+
| 模糊与遮罩 | 14 | `blur-in-down` · `blur-in-left` · `blur-in-right` · `blur-in-strong` · `blur-in-zoom` · `blur-in-scale` · `blur-in-x` · `mask-up` · `mask-down` · `mask-left` · `mask-right` · `blur-mask-up` |
|
|
50
|
+
| 裁剪揭示 | 22 | `clip-circle-top` · `clip-circle-bottom` · `clip-circle-left` · `clip-circle-right` · `clip-circle-corner` · `clip-ellipse` · `clip-diamond` · `clip-split-x` · `clip-split-y` · `clip-box` · `clip-pill` · `clip-blinds` · `clip-blinds-x` · `clip-diagonal` · `clip-diagonal-reverse` · `clip-slant-right` · `clip-slant-left` |
|
|
51
|
+
| 弹跳与弹性 | 17 | `bounce-in` · `bounce-in-up` · `bounce-in-down` · `bounce-in-left` · `bounce-in-right` · `elastic-in` · `elastic-in-x` · `rubber-in` · `jello-in` · `wobble-in` · `tada-in` · `heartbeat-in` · `drop-in` · `pop-in` · `squash-in` · `shake-in` · `swing-in` |
|
|
52
|
+
| 色彩与光影 | 14 | `brightness-in` · `darken-in` · `color-in` · `saturate-in` · `hue-in` · `sepia-in` · `invert-in` · `contrast-in` · `exposure-in` · `vintage-in` · `blur-bright-in` · `shadow-lift` · `neon-glow-in` · `glow-in` |
|
|
53
|
+
| 景深与透视 | 10 | `perspective-in-up` · `perspective-in-down` · `perspective-in-left` · `perspective-in-right` · `depth-push` · `depth-pull` · `depth-in-up` · `swoop-in-left` · `swoop-in-right` · `card-tilt-in` |
|
|
54
|
+
| 故障与特效 | 9 | `glitch-in` · `glitch-in-color` · `typewriter` · `typewriter-lines` · `hinge-in` · `flicker-in` · `scan-in` · `materialize` · `teleport-in` |
|
|
55
|
+
| 错峰列表 | 8 | `stagger-fade-up` · `stagger-pop` · `stagger-rise` · `stagger-slide` · `stagger-flip` · `stagger-blur` · `stagger-zoom` · `stagger-drop` |
|
|
56
|
+
| 随滚动 | 12 | `scrub-parallax-up` · `scrub-parallax-down` · `scrub-rotate` · `scrub-spin` · `scrub-scale` · `scrub-shrink` · `scrub-pan-left` · `scrub-pan-right` · `scrub-tilt` · `scrub-fade-through` · `scrub-blur-through` · `scrub-reveal-x` |
|
|
57
|
+
|
|
28
58
|
## 动画组件(v2.2)🧩
|
|
29
59
|
|
|
30
60
|
**30 个零依赖的动画 Web Components**(`<usa-*>`),分为六大类——**同时适用于网页与 Windows 桌面软件**(Electron、Tauri、WinUI/WPF/WinForms 中的 WebView2、PWA)。仅基于 Custom Elements + CSS + Web Animations:可摇树、SSR 安全、全面遵循 `prefers-reduced-motion`。**[在线组件库](https://harrisoncn.github.io/use-scroll-animate/showcase/components.html)** · [组件文档](./docs/components.md)(英文)· [Windows 应用指南](./docs/windows-apps.md)(英文)
|
|
@@ -70,6 +100,7 @@ defineComponents(); // 或按分类:import { defineTextComponents } from 'use-
|
|
|
70
100
|
|
|
71
101
|
## 文档
|
|
72
102
|
|
|
103
|
+
- [预设一览](./docs/presets.md)(全部 214 个预设,英文)
|
|
73
104
|
- [API 参考](./docs/API.md)(英文)· [演示页](./demo/index.html)(每个预设都可点击,无需构建)
|
|
74
105
|
- 迁移指南:[从 AOS 迁移](./docs/migration-from-aos.md) · [从 GSAP ScrollTrigger 迁移](./docs/migration-from-gsap-scrolltrigger.md)
|
|
75
106
|
- [升级到 2.0](./docs/deprecations.md):`createReactHooks` / `createVueComposables` 只能从 `use-scroll-animate/react` / `/vue` 导入;`dist/index.mjs`、`dist/index.esm.js`、`dist/types/*` 与 `dist/*` 深层导入已移除;默认引擎改为 `'auto'`。CDN 地址 `dist/index.umd.js` 不变。详见 [CHANGELOG](./CHANGELOG.md) 的 MIGRATION 部分。
|
|
@@ -1,198 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* use-scroll-animate - Animation Presets
|
|
3
|
-
* Defines keyframes for all built-in animation presets
|
|
4
|
-
*/
|
|
5
|
-
const PRESETS = {
|
|
6
|
-
'fade-in': {
|
|
7
|
-
from: { opacity: 0 },
|
|
8
|
-
to: { opacity: 1 },
|
|
9
|
-
},
|
|
10
|
-
'fade-in-up': {
|
|
11
|
-
from: { opacity: 0, transform: 'translateY(40px)' },
|
|
12
|
-
to: { opacity: 1, transform: 'translateY(0px)' },
|
|
13
|
-
},
|
|
14
|
-
'fade-in-down': {
|
|
15
|
-
from: { opacity: 0, transform: 'translateY(-40px)' },
|
|
16
|
-
to: { opacity: 1, transform: 'translateY(0px)' },
|
|
17
|
-
},
|
|
18
|
-
'fade-in-left': {
|
|
19
|
-
from: { opacity: 0, transform: 'translateX(-40px)' },
|
|
20
|
-
to: { opacity: 1, transform: 'translateX(0px)' },
|
|
21
|
-
},
|
|
22
|
-
'fade-in-right': {
|
|
23
|
-
from: { opacity: 0, transform: 'translateX(40px)' },
|
|
24
|
-
to: { opacity: 1, transform: 'translateX(0px)' },
|
|
25
|
-
},
|
|
26
|
-
'zoom-in': {
|
|
27
|
-
from: { opacity: 0, transform: 'scale(0.8)' },
|
|
28
|
-
to: { opacity: 1, transform: 'scale(1)' },
|
|
29
|
-
},
|
|
30
|
-
'zoom-out': {
|
|
31
|
-
from: { opacity: 0, transform: 'scale(1.2)' },
|
|
32
|
-
to: { opacity: 1, transform: 'scale(1)' },
|
|
33
|
-
},
|
|
34
|
-
'flip-x': {
|
|
35
|
-
from: { opacity: 0, transform: 'rotateX(-90deg)' },
|
|
36
|
-
to: { opacity: 1, transform: 'rotateX(0deg)' },
|
|
37
|
-
},
|
|
38
|
-
'flip-y': {
|
|
39
|
-
from: { opacity: 0, transform: 'rotateY(-90deg)' },
|
|
40
|
-
to: { opacity: 1, transform: 'rotateY(0deg)' },
|
|
41
|
-
},
|
|
42
|
-
'slide-up': {
|
|
43
|
-
from: { transform: 'translateY(100%)' },
|
|
44
|
-
to: { transform: 'translateY(0px)' },
|
|
45
|
-
},
|
|
46
|
-
'slide-down': {
|
|
47
|
-
from: { transform: 'translateY(-100%)' },
|
|
48
|
-
to: { transform: 'translateY(0px)' },
|
|
49
|
-
},
|
|
50
|
-
'slide-left': {
|
|
51
|
-
from: { transform: 'translateX(-100%)' },
|
|
52
|
-
to: { transform: 'translateX(0px)' },
|
|
53
|
-
},
|
|
54
|
-
'slide-right': {
|
|
55
|
-
from: { transform: 'translateX(100%)' },
|
|
56
|
-
to: { transform: 'translateX(0px)' },
|
|
57
|
-
},
|
|
58
|
-
'bounce': {
|
|
59
|
-
from: { opacity: 0, transform: 'translateY(-60px)' },
|
|
60
|
-
to: { opacity: 1, transform: 'translateY(0px)' },
|
|
61
|
-
},
|
|
62
|
-
'rotate-in': {
|
|
63
|
-
from: { opacity: 0, transform: 'rotate(-180deg) scale(0.5)' },
|
|
64
|
-
to: { opacity: 1, transform: 'rotate(0deg) scale(1)' },
|
|
65
|
-
},
|
|
66
|
-
'blur-in': {
|
|
67
|
-
from: { opacity: 0, filter: 'blur(12px)' },
|
|
68
|
-
to: { opacity: 1, filter: 'blur(0px)' },
|
|
69
|
-
},
|
|
70
|
-
'skew-in': {
|
|
71
|
-
from: { opacity: 0, transform: 'skewX(20deg) translateX(30px)' },
|
|
72
|
-
to: { opacity: 1, transform: 'skewX(0deg) translateX(0px)' },
|
|
73
|
-
},
|
|
74
|
-
'scale-x': {
|
|
75
|
-
from: { transform: 'scaleX(0)' },
|
|
76
|
-
to: { transform: 'scaleX(1)' },
|
|
77
|
-
},
|
|
78
|
-
'scale-y': {
|
|
79
|
-
from: { transform: 'scaleY(0)' },
|
|
80
|
-
to: { transform: 'scaleY(1)' },
|
|
81
|
-
},
|
|
82
|
-
'shimmer': {
|
|
83
|
-
from: { opacity: 0.5, filter: 'brightness(1)' },
|
|
84
|
-
to: { opacity: 1, filter: 'brightness(1.5)' },
|
|
85
|
-
},
|
|
86
|
-
'pulse': {
|
|
87
|
-
from: { transform: 'scale(1)' },
|
|
88
|
-
to: { transform: 'scale(1.05)' },
|
|
89
|
-
},
|
|
90
|
-
'swing': {
|
|
91
|
-
from: { transform: 'rotate(-10deg)' },
|
|
92
|
-
to: { transform: 'rotate(10deg)' },
|
|
93
|
-
},
|
|
94
|
-
'scale-up': {
|
|
95
|
-
from: { opacity: 0, transform: 'scale(0.5)' },
|
|
96
|
-
to: { opacity: 1, transform: 'scale(1)' },
|
|
97
|
-
},
|
|
98
|
-
'blur-in-up': {
|
|
99
|
-
from: { opacity: 0, filter: 'blur(12px)', transform: 'translateY(40px)' },
|
|
100
|
-
to: { opacity: 1, filter: 'blur(0px)', transform: 'translateY(0px)' },
|
|
101
|
-
},
|
|
102
|
-
'flip-up': {
|
|
103
|
-
from: { opacity: 0, transform: 'perspective(800px) rotateX(60deg)' },
|
|
104
|
-
to: { opacity: 1, transform: 'perspective(800px) rotateX(0deg)' },
|
|
105
|
-
},
|
|
106
|
-
'flip-down': {
|
|
107
|
-
from: { opacity: 0, transform: 'perspective(800px) rotateX(-60deg)' },
|
|
108
|
-
to: { opacity: 1, transform: 'perspective(800px) rotateX(0deg)' },
|
|
109
|
-
},
|
|
110
|
-
'rotate-left': {
|
|
111
|
-
from: { opacity: 0, transform: 'rotate(-15deg) translateX(-40px)' },
|
|
112
|
-
to: { opacity: 1, transform: 'rotate(0deg) translateX(0px)' },
|
|
113
|
-
},
|
|
114
|
-
'rotate-right': {
|
|
115
|
-
from: { opacity: 0, transform: 'rotate(15deg) translateX(40px)' },
|
|
116
|
-
to: { opacity: 1, transform: 'rotate(0deg) translateX(0px)' },
|
|
117
|
-
},
|
|
118
|
-
// clip-path reveals: content is uncovered without moving or fading
|
|
119
|
-
'clip-up': {
|
|
120
|
-
from: { clipPath: 'inset(100% 0% 0% 0%)' },
|
|
121
|
-
to: { clipPath: 'inset(0% 0% 0% 0%)' },
|
|
122
|
-
},
|
|
123
|
-
'clip-down': {
|
|
124
|
-
from: { clipPath: 'inset(0% 0% 100% 0%)' },
|
|
125
|
-
to: { clipPath: 'inset(0% 0% 0% 0%)' },
|
|
126
|
-
},
|
|
127
|
-
'clip-left': {
|
|
128
|
-
from: { clipPath: 'inset(0% 0% 0% 100%)' },
|
|
129
|
-
to: { clipPath: 'inset(0% 0% 0% 0%)' },
|
|
130
|
-
},
|
|
131
|
-
'clip-right': {
|
|
132
|
-
from: { clipPath: 'inset(0% 100% 0% 0%)' },
|
|
133
|
-
to: { clipPath: 'inset(0% 0% 0% 0%)' },
|
|
134
|
-
},
|
|
135
|
-
'clip-circle': {
|
|
136
|
-
from: { clipPath: 'circle(0% at 50% 50%)' },
|
|
137
|
-
to: { clipPath: 'circle(75% at 50% 50%)' },
|
|
138
|
-
},
|
|
139
|
-
};
|
|
140
|
-
function resolvePreset(animation) {
|
|
141
|
-
if (typeof animation === 'string') {
|
|
142
|
-
return PRESETS[animation.trim()] ?? PRESETS['fade-in-up'];
|
|
143
|
-
}
|
|
144
|
-
if (Array.isArray(animation)) {
|
|
145
|
-
const combined = { from: {}, to: {} };
|
|
146
|
-
animation.forEach(name => {
|
|
147
|
-
const preset = PRESETS[name.trim()];
|
|
148
|
-
if (preset) {
|
|
149
|
-
Object.entries(preset.from).forEach(([key, val]) => {
|
|
150
|
-
if (key === 'transform' && combined.from[key]) {
|
|
151
|
-
combined.from[key] = `${combined.from[key]} ${val}`;
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
combined.from[key] = val;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
Object.entries(preset.to).forEach(([key, val]) => {
|
|
158
|
-
if (key === 'transform' && combined.to[key]) {
|
|
159
|
-
combined.to[key] = `${combined.to[key]} ${val}`;
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
combined.to[key] = val;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
return combined;
|
|
168
|
-
}
|
|
169
|
-
return animation;
|
|
170
|
-
}
|
|
171
|
-
/** Easing to CSS cubic-bezier mapping */
|
|
172
|
-
const EASING_MAP = {
|
|
173
|
-
linear: 'linear',
|
|
174
|
-
ease: 'ease',
|
|
175
|
-
'ease-in': 'ease-in',
|
|
176
|
-
'ease-out': 'ease-out',
|
|
177
|
-
'ease-in-out': 'ease-in-out',
|
|
178
|
-
spring: 'cubic-bezier(0.34, 1.56, 0.64, 1)',
|
|
179
|
-
'soft-spring': 'cubic-bezier(0.175, 0.885, 0.32, 1.275)',
|
|
180
|
-
'heavy-bounce': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
|
|
181
|
-
};
|
|
182
|
-
function resolveEasing(easing) {
|
|
183
|
-
if (typeof easing === 'string') {
|
|
184
|
-
return EASING_MAP[easing] ?? easing;
|
|
185
|
-
}
|
|
186
|
-
if (Array.isArray(easing)) {
|
|
187
|
-
return `cubic-bezier(${easing.join(', ')})`;
|
|
188
|
-
}
|
|
189
|
-
if (typeof easing === 'function') {
|
|
190
|
-
// Functions cannot be expressed as a CSS easing string; the core samples
|
|
191
|
-
// them into a `linear()` easing (or keyframes on older browsers).
|
|
192
|
-
return 'linear';
|
|
193
|
-
}
|
|
194
|
-
return 'ease';
|
|
195
|
-
}
|
|
1
|
+
import { r as resolvePreset, a as resolveEasing, b as reversePreset } from './presets-BJ09NeTo.js';
|
|
196
2
|
|
|
197
3
|
/**
|
|
198
4
|
* use-scroll-animate - Core Implementation
|
|
@@ -514,13 +320,15 @@ function sampleEasing(fn) {
|
|
|
514
320
|
return values;
|
|
515
321
|
}
|
|
516
322
|
function buildAnimation(preset, easing) {
|
|
323
|
+
// `frames`: intermediate keyframes (overshoot, bounce, glitch …) between from and to
|
|
324
|
+
const list = [preset.from, ...(preset.frames || []), preset.to];
|
|
517
325
|
if (typeof easing !== 'function') {
|
|
518
|
-
return { keyframes:
|
|
326
|
+
return { keyframes: list, easing: resolveEasing(easing) };
|
|
519
327
|
}
|
|
520
328
|
const samples = sampleEasing(easing);
|
|
521
329
|
// Modern browsers: an exact, property-agnostic `linear()` easing curve.
|
|
522
|
-
if (supportsLinearEasing()) {
|
|
523
|
-
return { keyframes:
|
|
330
|
+
if (supportsLinearEasing() || preset.frames) {
|
|
331
|
+
return { keyframes: list, easing: supportsLinearEasing() ? `linear(${samples.join(', ')})` : 'ease' };
|
|
524
332
|
}
|
|
525
333
|
// Fallback: approximate the curve with interpolated keyframes.
|
|
526
334
|
const props = Object.keys(preset.from).filter((p) => p in preset.to);
|
|
@@ -656,7 +464,7 @@ function startNative(el, opts, onFrozen) {
|
|
|
656
464
|
// Reverse keyframes over the `exit` range; `fill: 'forwards'` so it has
|
|
657
465
|
// no effect before the element starts leaving.
|
|
658
466
|
const leave = resolvePreset(opts.exit === true ? opts.animation : opts.exit);
|
|
659
|
-
const out = buildAnimation(
|
|
467
|
+
const out = buildAnimation(reversePreset(leave), opts.easing);
|
|
660
468
|
try {
|
|
661
469
|
const timeline = new globalThis.ViewTimeline({ subject: el, axis: 'block' });
|
|
662
470
|
const timing = { fill: 'forwards', easing: out.easing, timeline, rangeStart: 'exit 0%', rangeEnd: 'exit 100%' };
|
|
@@ -692,7 +500,7 @@ function runExit(el, opts, config) {
|
|
|
692
500
|
}
|
|
693
501
|
cancelRunning(el);
|
|
694
502
|
const preset = resolvePreset(opts.exit === true ? opts.animation : opts.exit);
|
|
695
|
-
const built = buildAnimation(
|
|
503
|
+
const built = buildAnimation(reversePreset(preset), opts.easing);
|
|
696
504
|
const timing = { duration: opts.duration, easing: built.easing, fill: 'forwards' };
|
|
697
505
|
let anim;
|
|
698
506
|
try {
|
|
@@ -1097,5 +905,5 @@ function createScrollAnimate(userConfig = {}) {
|
|
|
1097
905
|
return instance;
|
|
1098
906
|
}
|
|
1099
907
|
|
|
1100
|
-
export {
|
|
1101
|
-
//# sourceMappingURL=core-
|
|
908
|
+
export { stopAnimation as a, resolveTargets as b, createScrollAnimate as c, prefersReducedMotion as d, supportsScrollTimeline as e, getScrollProgress as g, hasDOM as h, prepareElement as p, readOptions as r, supportsObserver as s };
|
|
909
|
+
//# sourceMappingURL=core-BVQW34aX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-BVQW34aX.js","sources":["../../src/core.ts"],"sourcesContent":["/**\n * use-scroll-animate - Core Implementation\n * Uses IntersectionObserver + Web Animations API for zero-dependency,\n * high-performance scroll-triggered animations.\n */\n\nimport type {\n AnimateOptions,\n AnimatedElement,\n ScrollAnimateConfig,\n ScrollAnimateInstance,\n} from './types';\nimport { resolvePreset, resolveEasing, reversePreset } from './presets';\n\ntype KeyframeMap = ReturnType<typeof resolvePreset>;\ntype Target = string | Element | NodeList | Element[];\ntype Root = Element | Document | null;\n\nconst DEFAULT_CONFIG: Required<ScrollAnimateConfig> = {\n defaultAnimation: 'fade-in-up',\n defaultDuration: 600,\n defaultDelay: 0,\n defaultEasing: 'ease',\n defaultThreshold: 0.1,\n defaultRootMargin: '0px',\n defaultRepeat: false,\n defaultOnce: true,\n defaultOffset: 0,\n hiddenClass: 'sa-hidden',\n visibleClass: 'sa-visible',\n useClassNames: false,\n disabled: false,\n root: null,\n autoUnregister: true,\n defaultEngine: 'auto',\n};\n\nconst noop = () => undefined;\n\n/* ------------------------------------------------------------------ */\n/* Environment helpers (all SSR-safe: never touch globals at import) */\n/* ------------------------------------------------------------------ */\n\nconst hasDOM = (): boolean => typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/** @internal */\nexport const supportsObserver = (): boolean => hasDOM() && typeof IntersectionObserver !== 'undefined';\n\nlet reducedMotionQuery: MediaQueryList | null | undefined;\n\n/** @internal Whether the user asked the OS/browser to reduce motion. */\nexport function prefersReducedMotion(): boolean {\n if (!hasDOM()) return false;\n if (reducedMotionQuery === undefined) {\n reducedMotionQuery =\n typeof window.matchMedia === 'function' ? window.matchMedia('(prefers-reduced-motion: reduce)') : null;\n }\n return !!reducedMotionQuery && reducedMotionQuery.matches;\n}\n\nlet scrollTimelineSupported: boolean | undefined;\n\n/**\n * Whether the browser can run presets on a native scroll-driven timeline:\n * `CSS.supports('animation-timeline: view()')` plus the `ViewTimeline`\n * constructor used to attach it from JavaScript. Cached. SSR-safe.\n */\nexport function supportsScrollTimeline(): boolean {\n if (scrollTimelineSupported === undefined) {\n scrollTimelineSupported =\n hasDOM() &&\n typeof CSS !== 'undefined' &&\n typeof CSS.supports === 'function' &&\n CSS.supports('animation-timeline: view()') &&\n typeof (globalThis as any).ViewTimeline === 'function';\n }\n return scrollTimelineSupported;\n}\n\n/** @internal Reset the cached feature checks (tests). */\nexport function resetFeatureCache(): void {\n scrollTimelineSupported = undefined;\n linearSupported = undefined;\n}\n\n/* ------------------------------------------------------------------ */\n/* Option parsing */\n/* ------------------------------------------------------------------ */\n\nfunction num(value: string | undefined): number | undefined {\n if (value === undefined || value.trim() === '') return undefined;\n const n = parseFloat(value);\n return Number.isFinite(n) ? n : undefined;\n}\n\n\nconst DEFAULT_PROGRESS_VAR = '--sa-progress';\nconst DEFAULT_VIEW_RANGE: [string, string] = ['entry 0%', 'entry 100%'];\n\n/** `''` (bare attribute) -> default name; `sa-progress` -> `--sa-progress`. */\nfunction normalizeVar(name: string): string {\n const v = name.trim();\n if (!v) return DEFAULT_PROGRESS_VAR;\n return v.startsWith('--') ? v : `--${v}`;\n}\n\n/**\n * @internal Read options from string attributes. `get(name)` returns the raw\n * value of the attribute `name` (kebab-case, e.g. `root-margin`), `''` for a\n * bare attribute and `undefined` when absent. Shared by `data-sa-*` and the\n * `<scroll-animate>` element.\n */\nexport function readOptions(get: (name: string) => string | undefined): AnimateOptions {\n const opts: AnimateOptions = {};\n\n const anim = get('animation');\n if (anim) {\n opts.animation = (anim.includes(',') ? anim.split(',').map((s) => s.trim()) : anim.trim()) as any;\n }\n opts.duration = num(get('duration'));\n opts.delay = num(get('delay'));\n const easing = get('easing');\n if (easing) {\n const e = easing.trim();\n if (e.startsWith('[')) {\n try {\n opts.easing = JSON.parse(e);\n } catch {\n // Malformed JSON: fall back to the default easing instead of throwing\n }\n } else {\n opts.easing = e;\n }\n }\n const t = get('threshold');\n if (t) {\n opts.threshold = t.includes(',') ? t.split(',').map(parseFloat).filter(Number.isFinite) : num(t);\n }\n const rootMargin = get('root-margin');\n if (rootMargin) opts.rootMargin = rootMargin;\n const repeat = get('repeat');\n if (repeat !== undefined) opts.repeat = repeat !== 'false';\n const once = get('once');\n if (once !== undefined) opts.once = once !== 'false';\n opts.offset = num(get('offset'));\n opts.stagger = num(get('stagger'));\n const progressVar = get('progress-var');\n if (progressVar !== undefined) opts.progressVar = normalizeVar(progressVar);\n const engine = get('engine')?.trim();\n if (engine === 'auto' || engine === 'js' || engine === 'css') opts.engine = engine;\n const range = get('view-range');\n if (range) {\n const [start, end] = range.split(',').map((s) => s.trim());\n if (start && end) opts.viewRange = [start, end];\n }\n const exit = get('exit');\n if (exit !== undefined) {\n const e = exit.trim();\n opts.exit = e === '' || e === 'true' ? true : e === 'false' ? false : ((e.includes(',') ? e.split(',').map((s) => s.trim()) : e) as any);\n }\n const progress = get('progress');\n if (progress) opts.progressMode = progress.trim() === 'scroll' ? 'scroll' : 'ratio';\n\n // Drop keys that were not set, so they don't override defaults when spread.\n (Object.keys(opts) as Array<keyof AnimateOptions>).forEach((k) => opts[k] === undefined && delete opts[k]);\n return opts;\n}\n\nfunction parseDataAttributes(el: Element, config: Required<ScrollAnimateConfig>): Required<AnimateOptions> {\n return mergeOptions(\n readOptions((name) => {\n const v = el.getAttribute(`data-sa-${name}`);\n return v === null ? undefined : v;\n }),\n config\n );\n}\n\nfunction mergeOptions(opts: AnimateOptions, config: Required<ScrollAnimateConfig>): Required<AnimateOptions> {\n let engine = opts.engine ?? config.defaultEngine;\n // 'auto' keeps time-based semantics when the element asks for them explicitly.\n if (engine === 'auto' && (opts.duration !== undefined || opts.delay !== undefined || opts.offset !== undefined || (opts.stagger ?? 0) > 0)) {\n engine = 'js';\n }\n const exit = opts.exit ?? false;\n const repeat = opts.repeat ?? (exit ? true : config.defaultRepeat);\n const threshold = opts.threshold ?? config.defaultThreshold;\n return {\n animation: opts.animation ?? config.defaultAnimation,\n duration: opts.duration ?? config.defaultDuration,\n delay: opts.delay ?? config.defaultDelay,\n easing: opts.easing ?? config.defaultEasing,\n threshold: Array.isArray(threshold) && threshold.length === 0 ? config.defaultThreshold : threshold,\n rootMargin: opts.rootMargin ?? config.defaultRootMargin,\n repeat,\n once: opts.once ?? (repeat ? false : config.defaultOnce),\n offset: opts.offset ?? config.defaultOffset,\n stagger: opts.stagger ?? 0,\n onStart: opts.onStart ?? noop,\n onComplete: opts.onComplete ?? noop,\n onEnter: opts.onEnter ?? noop,\n onLeave: opts.onLeave ?? noop,\n onProgress: opts.onProgress ?? noop,\n progressMode: opts.progressMode ?? 'ratio',\n progressVar: opts.progressVar ? normalizeVar(opts.progressVar) : '',\n engine,\n viewRange: opts.viewRange ?? DEFAULT_VIEW_RANGE,\n exit,\n };\n}\n\nfunction resolveTargets(target: Target | null | undefined): Element[] {\n if (!target || !hasDOM()) return [];\n if (typeof target === 'string') return Array.from(document.querySelectorAll(target));\n if (target instanceof Element) return [target];\n if (Array.isArray(target) || target instanceof NodeList) {\n return (Array.from(target as ArrayLike<Node>) as Element[]).filter((el) => el instanceof Element);\n }\n return [];\n}\n\n/**\n * Apply `offset` to the bottom edge of a rootMargin, preserving the other\n * three sides. `offset: 100` means \"trigger 100px later\" (bottom -100px).\n * @internal\n */\nexport function applyOffset(rootMargin: string, offset: number): string {\n if (!offset) return rootMargin;\n const parts = (rootMargin || '0px').trim().split(/\\s+/);\n const top = parts[0];\n const right = parts[1] ?? top;\n const bottom = parts[2] ?? top;\n const left = parts[3] ?? right;\n const m = /^(-?\\d*\\.?\\d+)(px)?$/.exec(bottom);\n const base = m ? parseFloat(m[1]) : 0; // non-px bottoms (e.g. %) cannot be combined; offset wins\n return `${top} ${right} ${base - offset}px ${left}`;\n}\n\nfunction needsProgress(opts: Required<AnimateOptions>): boolean {\n return opts.onProgress !== noop || !!opts.progressVar;\n}\n\n/**\n * True scroll progress of `el` through the viewport (or `root`): 0 when its top\n * edge reaches the bottom of the viewport, 1 when its bottom edge passes the top.\n * Works for elements taller than the viewport. Returns 0 without a DOM.\n */\nexport function getScrollProgress(el: Element, root?: Element | null): number {\n if (!hasDOM()) return 0;\n const rect = el.getBoundingClientRect();\n let top = 0;\n let height = window.innerHeight || document.documentElement.clientHeight || 0;\n if (root) {\n const r = root.getBoundingClientRect();\n top = r.top;\n height = r.height;\n }\n const total = height + rect.height;\n if (total <= 0) return 0;\n const p = (top + height - rect.top) / total;\n return p < 0 ? 0 : p > 1 ? 1 : p;\n}\n\n/* ------------------------------------------------------------------ */\n/* Animation */\n/* ------------------------------------------------------------------ */\n\n/** The animation currently running on an element, so it can be cancelled/replaced. */\nconst running = new WeakMap<Element, Animation>();\n/** Native engine: the scroll-linked exit animation, next to the entrance in `running`. */\nconst exits = new WeakMap<Element, Animation>();\nconst timers = new WeakMap<Element, ReturnType<typeof setTimeout>>();\n\nfunction cancelRunning(el: Element): void {\n const exitAnim = exits.get(el);\n if (exitAnim) {\n exits.delete(el);\n exitAnim.cancel();\n }\n const anim = running.get(el);\n if (anim) {\n running.delete(el);\n anim.onfinish = null;\n anim.cancel();\n }\n const timer = timers.get(el);\n if (timer !== undefined) {\n clearTimeout(timer);\n timers.delete(el);\n }\n}\n\nfunction setStyles(el: Element, styles: Record<string, string | number>): void {\n const style = (el as HTMLElement).style;\n if (!style) return;\n Object.keys(styles).forEach((prop) => {\n (style as any)[prop] = String(styles[prop]);\n });\n}\n\nconst NUM_UNIT = /(-?(?:\\d+\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?)([a-z%]*)/gi;\n\n/**\n * Interpolate two CSS values at `t`. Numbers interpolate directly; strings\n * interpolate when they share the same structure (e.g. `translateY(40px)` ->\n * `translateY(0px)`, or `scale(0.8)` -> `scale(1)`). Otherwise snaps at 0.5.\n * @internal\n */\nexport function interpolateValue(from: string | number, to: string | number, t: number): string | number {\n if (typeof from === 'number' && typeof to === 'number') return from + (to - from) * t;\n const a = String(from);\n const b = String(to);\n const ta: Array<[number, string]> = [];\n const tb: Array<[number, string]> = [];\n const skA = a.replace(NUM_UNIT, (_, n, u) => (ta.push([parseFloat(n), u]), '#'));\n const skB = b.replace(NUM_UNIT, (_, n, u) => (tb.push([parseFloat(n), u]), '#'));\n if (skA !== skB || ta.length !== tb.length) return t < 0.5 ? from : to;\n let i = 0;\n let ok = true;\n const out = skA.replace(/#/g, () => {\n const [na, ua] = ta[i];\n const [nb, ub] = tb[i++];\n if (ua !== ub && na !== 0 && nb !== 0 && ua && ub) ok = false;\n const unit = ua || ub;\n return `${+(na + (nb - na) * t).toFixed(4)}${unit}`;\n });\n return ok ? out : t < 0.5 ? from : to;\n}\n\nconst EASING_SAMPLES = 30;\nlet linearSupported: boolean | undefined;\n\nfunction supportsLinearEasing(): boolean {\n if (linearSupported === undefined) {\n linearSupported =\n typeof CSS !== 'undefined' &&\n typeof CSS.supports === 'function' &&\n CSS.supports('animation-timing-function', 'linear(0, 1)');\n }\n return linearSupported;\n}\n\nfunction sampleEasing(fn: (t: number) => number): number[] {\n const values: number[] = [];\n for (let i = 0; i <= EASING_SAMPLES; i++) {\n const v = fn(i / EASING_SAMPLES);\n values.push(Number.isFinite(v) ? +v.toFixed(4) : i / EASING_SAMPLES);\n }\n return values;\n}\n\nfunction buildAnimation(\n preset: KeyframeMap,\n easing: Required<AnimateOptions>['easing']\n): { keyframes: Keyframe[]; easing: string } {\n // `frames`: intermediate keyframes (overshoot, bounce, glitch …) between from and to\n const list = [preset.from, ...(preset.frames || []), preset.to] as Keyframe[];\n if (typeof easing !== 'function') {\n return { keyframes: list, easing: resolveEasing(easing) };\n }\n const samples = sampleEasing(easing);\n // Modern browsers: an exact, property-agnostic `linear()` easing curve.\n if (supportsLinearEasing() || preset.frames) {\n return { keyframes: list, easing: supportsLinearEasing() ? `linear(${samples.join(', ')})` : 'ease' };\n }\n // Fallback: approximate the curve with interpolated keyframes.\n const props = Object.keys(preset.from).filter((p) => p in preset.to);\n const keyframes = samples.map((eased, i) => {\n const frame: Keyframe = { offset: i / EASING_SAMPLES };\n props.forEach((prop) => {\n frame[prop] = interpolateValue(preset.from[prop], preset.to[prop], eased);\n });\n return frame;\n });\n return { keyframes, easing: 'linear' };\n}\n\n/** Make an element visible without animating (reduced motion / disabled / no WAAPI). */\nfunction reveal(el: Element, config: Required<ScrollAnimateConfig>): void {\n cancelRunning(el);\n if (config.useClassNames) {\n el.classList.remove(config.hiddenClass);\n el.classList.add(config.visibleClass);\n } else {\n const style = (el as HTMLElement).style;\n if (style) style.opacity = '';\n }\n}\n\n/** @internal Cancel a running/pending animation and make the element visible. */\nexport function stopAnimation(el: Element, config: ScrollAnimateConfig = {}): void {\n reveal(el, { ...DEFAULT_CONFIG, ...config });\n}\n\n/** @internal Resolve a selector / Element / NodeList / Element[] to elements (SSR-safe). */\nexport { resolveTargets, hasDOM };\n\n/** @internal Whether animations should be skipped entirely. */\nexport function motionDisabled(config: Pick<ScrollAnimateConfig, 'disabled'>): boolean {\n return !!config.disabled || prefersReducedMotion();\n}\n\nfunction runAnimation(\n el: Element,\n opts: Required<AnimateOptions>,\n config: Required<ScrollAnimateConfig>,\n staggerIndex = 0,\n pending?: Set<Element>\n): void {\n const { duration, delay, stagger, onStart, onComplete } = opts;\n const totalDelay = Math.max(0, delay + staggerIndex * stagger);\n cancelRunning(el);\n\n if (motionDisabled(config)) {\n reveal(el, config);\n onStart(el);\n onComplete(el);\n return;\n }\n\n if (config.useClassNames) {\n if (totalDelay > 0) (el as HTMLElement).style.animationDelay = `${totalDelay}ms`;\n el.classList.remove(config.hiddenClass);\n el.classList.add(config.visibleClass);\n onStart(el);\n pending?.add(el);\n timers.set(\n el,\n setTimeout(() => {\n timers.delete(el);\n pending?.delete(el);\n onComplete(el);\n }, duration + totalDelay)\n );\n return;\n }\n\n const preset = resolvePreset(opts.animation);\n // Presets that don't animate opacity (slide-*, clip-*, scale-x, ...) would\n // otherwise stay at the `opacity: 0` applied while waiting to enter.\n if (!('opacity' in preset.to)) {\n const style = (el as HTMLElement).style;\n if (style && style.opacity === '0') style.opacity = '';\n }\n\n if (typeof el.animate !== 'function') {\n setStyles(el, preset.to);\n onStart(el);\n onComplete(el);\n return;\n }\n\n const built = buildAnimation(preset, opts.easing);\n const timing: KeyframeAnimationOptions = { duration, delay: totalDelay, easing: built.easing, fill: 'both' };\n let anim: Animation;\n try {\n anim = el.animate(built.keyframes, timing);\n } catch {\n // Invalid user easing string (WAAPI throws a TypeError): fall back to 'ease'\n anim = el.animate(built.keyframes, { ...timing, easing: 'ease' });\n }\n running.set(el, anim);\n onStart(el);\n anim.onfinish = () => {\n if (running.get(el) === anim) {\n running.delete(el);\n // Persist the end state inline and drop the filling animation. This frees\n // the Animation object and lets later inline styles (parallax, user code)\n // take effect instead of being masked by `fill: forwards`.\n try {\n anim.commitStyles();\n } catch {\n setStyles(el, preset.to);\n }\n anim.cancel();\n }\n onComplete(el);\n };\n}\n\n/**\n * Native engine: attach the preset to a `ViewTimeline` of the element, so the\n * browser drives it from scroll position. Returns `null` when that fails\n * (caller falls back to the JS engine).\n */\nfunction startNative(el: Element, opts: Required<AnimateOptions>, onFrozen?: () => void): Animation | null {\n if (typeof el.animate !== 'function') return null;\n const preset = resolvePreset(opts.animation);\n const built = buildAnimation(preset, opts.easing);\n let anim: Animation;\n try {\n const timeline = new (globalThis as any).ViewTimeline({ subject: el, axis: 'block' });\n const timing = {\n fill: 'both',\n easing: built.easing,\n timeline,\n rangeStart: opts.viewRange[0],\n rangeEnd: opts.viewRange[1],\n } as KeyframeAnimationOptions;\n try {\n anim = el.animate(built.keyframes, timing);\n } catch {\n anim = el.animate(built.keyframes, { ...timing, easing: 'linear' });\n }\n } catch {\n return null;\n }\n running.set(el, anim);\n if (opts.exit) {\n // Reverse keyframes over the `exit` range; `fill: 'forwards'` so it has\n // no effect before the element starts leaving.\n const leave = resolvePreset(opts.exit === true ? opts.animation : opts.exit);\n const out = buildAnimation(reversePreset(leave), opts.easing);\n try {\n const timeline = new (globalThis as any).ViewTimeline({ subject: el, axis: 'block' });\n const timing = { fill: 'forwards', easing: out.easing, timeline, rangeStart: 'exit 0%', rangeEnd: 'exit 100%' };\n exits.set(el, el.animate(out.keyframes, timing as KeyframeAnimationOptions));\n } catch {\n // Exit is cosmetic: ignore if unsupported.\n }\n }\n const keep = opts.repeat || !opts.once;\n anim.onfinish = () => {\n // `once`: freeze the end state, so scrolling back up does not reverse it.\n if (!keep && running.get(el) === anim) {\n running.delete(el);\n try {\n anim.commitStyles();\n } catch {\n setStyles(el, preset.to);\n }\n anim.cancel();\n onFrozen?.();\n }\n opts.onComplete(el);\n };\n return anim;\n}\n\n/** Play the exit animation (entrance or `exit` preset, reversed), ending hidden. */\nfunction runExit(el: Element, opts: Required<AnimateOptions>, config: Required<ScrollAnimateConfig>): void {\n if (config.useClassNames || typeof el.animate !== 'function') {\n hideElement(el, config);\n return;\n }\n cancelRunning(el);\n const preset = resolvePreset(opts.exit === true ? opts.animation : (opts.exit as Exclude<typeof opts.exit, boolean>));\n const built = buildAnimation(reversePreset(preset), opts.easing);\n const timing: KeyframeAnimationOptions = { duration: opts.duration, easing: built.easing, fill: 'forwards' };\n let anim: Animation;\n try {\n anim = el.animate(built.keyframes, timing);\n } catch {\n anim = el.animate(built.keyframes, { ...timing, easing: 'ease' });\n }\n // Kept (filling) until the next entrance cancels it.\n running.set(el, anim);\n}\n\nfunction hideElement(el: Element, config: Required<ScrollAnimateConfig>): void {\n cancelRunning(el);\n if (config.useClassNames) {\n el.classList.add(config.hiddenClass);\n el.classList.remove(config.visibleClass);\n } else {\n const style = (el as HTMLElement).style;\n if (style) style.opacity = '0';\n }\n}\n\n/** @internal Hide an element before its entrance animation, unless motion is off. */\nexport function prepareElement(el: Element, config: ScrollAnimateConfig = {}): void {\n const full = { ...DEFAULT_CONFIG, ...config };\n if (!motionDisabled(full)) hideElement(el, full);\n}\n\nlet progressThresholds: number[] | undefined;\nfunction getProgressThresholds(): number[] {\n if (!progressThresholds) {\n progressThresholds = [];\n for (let i = 0; i <= 100; i++) progressThresholds.push(i / 100);\n }\n return progressThresholds;\n}\n\nconst PASSIVE: AddEventListenerOptions = { passive: true };\n\n/* ------------------------------------------------------------------ */\n/* Instance */\n/* ------------------------------------------------------------------ */\n\nexport function createScrollAnimate(userConfig: ScrollAnimateConfig = {}): ScrollAnimateInstance {\n let config: Required<ScrollAnimateConfig> = { ...DEFAULT_CONFIG, ...userConfig };\n const registry = new Map<Element, AnimatedElement>();\n // `once` elements that finished and were dropped from the registry (autoUnregister).\n let finished = new WeakSet<Element>();\n // Elements in `progressMode: 'scroll'` that are currently inside the viewport.\n const scrolling = new Set<Element>();\n let frame = 0;\n let listening: EventTarget | null = null;\n // Active watch() MutationObservers, disconnected by destroy().\n const watchers = new Set<MutationObserver>();\n // Elements with a pending class-name completion timer started by this instance.\n const pending = new Set<Element>();\n // Elements whose entrance runs on a native scroll-driven timeline.\n const natives = new Set<Element>();\n\n // Observers are shared between elements with the same root/threshold/rootMargin,\n // instead of one (or two) IntersectionObservers per element.\n const pools = new Map<Root, Map<string, IntersectionObserver>>();\n\n function pooled(root: Root, key: string, create: () => IntersectionObserver): IntersectionObserver {\n let pool = pools.get(root);\n if (!pool) pools.set(root, (pool = new Map()));\n let io = pool.get(key);\n if (!io) pool.set(key, (io = create()));\n return io;\n }\n\n function teardown(el: Element, restore: boolean): void {\n const record = registry.get(el);\n if (!record) return;\n record.observer.unobserve(el);\n record.progressObserver?.unobserve(el);\n registry.delete(el);\n untrack(el);\n if (record.engine === 'css') {\n // A scroll-linked animation would keep following the scroll: stop it and\n // show the element (unless it finished and is just being released).\n if (restore) {\n natives.delete(el);\n reveal(el, config);\n } else if (el.isConnected === false) {\n // Left the DOM: drop it too, or the instance keeps it alive (and\n // destroy() touches it) for its whole lifetime.\n natives.delete(el);\n }\n return;\n }\n // An element that never animated would otherwise stay invisible forever.\n if (restore && !record.animated) reveal(el, config);\n }\n\n function pruneDetached(): void {\n registry.forEach((record, el) => {\n if (el.isConnected === false) teardown(el, false);\n });\n }\n\n function emitProgress(el: Element, record: AnimatedElement, progress: number): void {\n const opts = record.options;\n opts.onProgress(el, progress);\n if (opts.progressVar) {\n const style = (el as HTMLElement).style;\n if (style) style.setProperty(opts.progressVar, String(+progress.toFixed(4)));\n }\n }\n\n function update(): void {\n frame = 0;\n scrolling.forEach((el) => {\n const record = registry.get(el);\n if (record) emitProgress(el, record, getScrollProgress(el, config.root));\n });\n }\n\n // rAF-throttled; IntersectionObserver-capable browsers all have rAF.\n const schedule = () => frame || (frame = requestAnimationFrame(update));\n\n function listen(on: boolean): void {\n if (on === !!listening) return;\n const method = on ? 'addEventListener' : 'removeEventListener';\n const target: EventTarget = listening || (config.root as EventTarget | null) || window;\n target[method]('scroll', schedule, PASSIVE);\n window[method]('resize', schedule, PASSIVE);\n listening = on ? target : null;\n if (!on && frame) {\n cancelAnimationFrame(frame);\n frame = 0;\n }\n }\n\n function untrack(el: Element): void {\n if (scrolling.delete(el) && !scrolling.size) listen(false);\n }\n\n function onScrollIntersect(entries: IntersectionObserverEntry[]): void {\n entries.forEach((entry) => {\n const el = entry.target;\n const record = registry.get(el);\n if (!record) return;\n if (entry.isIntersecting) {\n scrolling.add(el);\n listen(true);\n } else {\n untrack(el);\n }\n // Emit right away so the edges (0 / 1) are reported even on fast scrolls.\n emitProgress(el, record, getScrollProgress(el, config.root));\n });\n }\n\n function onIntersect(entries: IntersectionObserverEntry[]): void {\n const staggerCounts = new Map<Element | null, number>();\n entries.forEach((entry) => {\n const el = entry.target;\n const record = registry.get(el);\n if (!record) return;\n const opts = record.options;\n\n if (el.isConnected === false) {\n teardown(el, false);\n return;\n }\n\n if (record.engine === 'css') {\n // The browser drives the animation; only lifecycle bookkeeping here.\n if (entry.isIntersecting) {\n opts.onEnter(el);\n if (!record.animated) {\n record.animated = true;\n opts.onStart(el);\n }\n if (opts.once && !opts.repeat) {\n record.observer.unobserve(el);\n if (config.autoUnregister && !record.progressObserver) {\n finished.add(el);\n teardown(el, false);\n }\n }\n } else {\n opts.onLeave(el);\n if (opts.repeat) record.animated = false;\n }\n return;\n }\n\n if (entry.isIntersecting) {\n opts.onEnter(el);\n if (record.animated && !opts.repeat) return;\n\n // Stagger relative to siblings revealed in the same batch, so elements\n // scrolled into view later don't inherit an ever-growing delay.\n let staggerIndex = 0;\n if (opts.stagger > 0) {\n const parent = el.parentElement;\n staggerIndex = staggerCounts.get(parent) ?? 0;\n staggerCounts.set(parent, staggerIndex + 1);\n }\n\n runAnimation(el, opts, config, staggerIndex, pending);\n record.animated = true;\n\n if (opts.once && !opts.repeat) {\n // Keep the progress observer: parallax/onProgress must keep working.\n record.observer.unobserve(el);\n if (config.autoUnregister && !record.progressObserver) {\n // Nothing left to watch: free the record (the running animation\n // keeps its own reference until it finishes).\n finished.add(el);\n teardown(el, false);\n }\n }\n } else {\n opts.onLeave(el);\n if (opts.repeat && record.animated) {\n if (!motionDisabled(config)) {\n if (opts.exit) runExit(el, opts, config);\n else hideElement(el, config);\n }\n record.animated = false;\n }\n }\n });\n }\n\n function onProgress(entries: IntersectionObserverEntry[]): void {\n entries.forEach((entry) => {\n const record = registry.get(entry.target);\n if (!record) return;\n emitProgress(entry.target, record, entry.intersectionRatio);\n });\n }\n\n function getObserver(opts: Required<AnimateOptions>): IntersectionObserver {\n const rootMargin = applyOffset(opts.rootMargin, opts.offset);\n const threshold = opts.threshold;\n const root = config.root;\n return pooled(root, `m|${rootMargin}|${String(threshold)}`, () =>\n new IntersectionObserver(onIntersect, { threshold, rootMargin, root: root as Element | null })\n );\n }\n\n function getProgressObserver(opts: Required<AnimateOptions>): IntersectionObserver {\n const root = config.root;\n if (opts.progressMode === 'scroll') {\n // Only used to know when to start/stop measuring; progress itself comes\n // from a single shared, rAF-throttled passive scroll listener.\n return pooled(root, `s|${opts.rootMargin}`, () =>\n new IntersectionObserver(onScrollIntersect, { threshold: 0, rootMargin: opts.rootMargin, root: root as Element | null })\n );\n }\n return pooled(root, `p|${opts.rootMargin}`, () =>\n new IntersectionObserver(onProgress, {\n threshold: getProgressThresholds(),\n rootMargin: opts.rootMargin,\n root: root as Element | null,\n })\n );\n }\n\n function attach(el: Element, record: AnimatedElement, observeMain: boolean): void {\n record.observer = getObserver(record.options);\n if (observeMain) record.observer.observe(el);\n record.progressObserver = needsProgress(record.options) ? getProgressObserver(record.options) : undefined;\n record.progressObserver?.observe(el);\n }\n\n function wantsNative(opts: Required<AnimateOptions>): boolean {\n return opts.engine !== 'js' && !config.useClassNames && !motionDisabled(config) && supportsScrollTimeline();\n }\n\n function observeElement(el: Element, opts: Required<AnimateOptions>): void {\n if (registry.has(el) || finished.has(el)) return;\n\n if (!supportsObserver()) {\n // No IntersectionObserver (very old browser): never leave content hidden.\n reveal(el, config);\n return;\n }\n\n const record = { element: el, options: opts, animated: false, engine: 'js' } as AnimatedElement;\n if (wantsNative(opts)) {\n cancelRunning(el);\n if (startNative(el, opts, () => natives.delete(el))) {\n record.engine = 'css';\n natives.add(el);\n }\n }\n if (record.engine === 'js' && !motionDisabled(config)) hideElement(el, config);\n\n registry.set(el, record);\n attach(el, record, true);\n }\n\n function observeDataElement(el: Element): void {\n if (!registry.has(el)) observeElement(el, parseDataAttributes(el, config));\n }\n\n const instance: ScrollAnimateInstance = {\n observe(target, options = {}) {\n pruneDetached();\n const opts = mergeOptions(options, config);\n resolveTargets(target).forEach((el) => observeElement(el, opts));\n },\n\n unobserve(target) {\n resolveTargets(target).forEach((el) => {\n finished.delete(el);\n teardown(el, true);\n });\n },\n\n init(rootElement) {\n const scope = rootElement ?? (hasDOM() ? document : null);\n if (!scope) return;\n pruneDetached();\n scope.querySelectorAll('[data-sa]').forEach(observeDataElement);\n },\n\n watch(rootElement) {\n const scope = rootElement ?? (hasDOM() ? document : null);\n if (!scope || typeof MutationObserver === 'undefined') return noop;\n instance.init(scope);\n const observeTree = (node: Element) => {\n if (node.hasAttribute('data-sa')) observeDataElement(node);\n node.querySelectorAll('[data-sa]').forEach(observeDataElement);\n };\n const mo = new MutationObserver((records) => {\n let removed = false;\n records.forEach((record) => {\n if (record.type === 'attributes') {\n const target = record.target as Element;\n if (target.isConnected !== false) observeTree(target);\n return;\n }\n record.addedNodes.forEach((node) => {\n if (node instanceof Element && node.isConnected !== false) observeTree(node);\n });\n if (record.removedNodes.length) removed = true;\n });\n // Free elements that left the DOM (they can't animate any more).\n if (removed) pruneDetached();\n });\n mo.observe(scope, { childList: true, subtree: true, attributes: true, attributeFilter: ['data-sa'] });\n watchers.add(mo);\n return () => {\n mo.disconnect();\n watchers.delete(mo);\n };\n },\n\n destroy() {\n watchers.forEach((mo) => mo.disconnect());\n watchers.clear();\n // Class-name mode: drop completion timers so onComplete never fires after destroy().\n pending.forEach((el) => {\n const timer = timers.get(el);\n if (timer !== undefined) {\n clearTimeout(timer);\n timers.delete(el);\n }\n });\n pending.clear();\n registry.forEach((record, el) => {\n if (!record.animated && record.engine !== 'css') reveal(el, config);\n });\n // Native scroll-linked animations still running: stop them, show content.\n natives.forEach((el) => {\n if (running.has(el)) reveal(el, config);\n });\n natives.clear();\n pools.forEach((pool) => pool.forEach((io) => io.disconnect()));\n pools.clear();\n registry.clear();\n scrolling.clear();\n listen(false);\n finished = new WeakSet();\n },\n\n refresh() {\n // Rebuild observers (e.g. after configure({ root })) without re-hiding or\n // replaying elements that have already animated.\n pools.forEach((pool) => pool.forEach((io) => io.disconnect()));\n pools.clear();\n scrolling.clear();\n listen(false);\n pruneDetached();\n if (!supportsObserver()) return;\n registry.forEach((record, el) => {\n const done = record.animated && record.options.once && !record.options.repeat;\n attach(el, record, !done);\n });\n },\n\n animate(target, options = {}) {\n const opts = mergeOptions(options, config);\n resolveTargets(target).forEach((el) => runAnimation(el, opts, config, 0, pending));\n },\n\n getObservedElements() {\n return Array.from(registry.values());\n },\n\n configure(newConfig) {\n config = { ...config, ...newConfig };\n },\n };\n\n return instance;\n}\n"],"names":[],"mappings":";;AAAA;;;;AAIG;AAcH,MAAM,cAAc,GAAkC;AACpD,IAAA,gBAAgB,EAAE,YAAY;AAC9B,IAAA,eAAe,EAAE,GAAG;AACpB,IAAA,YAAY,EAAE,CAAC;AACf,IAAA,aAAa,EAAE,MAAM;AACrB,IAAA,gBAAgB,EAAE,GAAG;AACrB,IAAA,iBAAiB,EAAE,KAAK;AACxB,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,aAAa,EAAE,CAAC;AAChB,IAAA,WAAW,EAAE,WAAW;AACxB,IAAA,YAAY,EAAE,YAAY;AAC1B,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,cAAc,EAAE,IAAI;AACpB,IAAA,aAAa,EAAE,MAAM;CACtB;AAED,MAAM,IAAI,GAAG,MAAM,SAAS;AAE5B;AACA;AACA;AAEA,MAAM,MAAM,GAAG,MAAe,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,QAAQ,KAAK;AAEnF;AACO,MAAM,gBAAgB,GAAG,MAAe,MAAM,EAAE,IAAI,OAAO,oBAAoB,KAAK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