@particle-academy/fancy-slides 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/index.cjs +460 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -9
- package/dist/index.d.ts +97 -9
- package/dist/index.js +455 -40
- package/dist/index.js.map +1 -1
- package/dist/registry.d.cts +1 -1
- package/dist/registry.d.ts +1 -1
- package/dist/{types-B2ecrEAz.d.cts → types-P-9MmnGU.d.cts} +32 -1
- package/dist/{types-B2ecrEAz.d.ts → types-P-9MmnGU.d.ts} +32 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,6 +81,32 @@ See `docs/human-plus.md` for the full contract.
|
|
|
81
81
|
| `shape` | SVG primitives (rect, ellipse, line, arrow) | |
|
|
82
82
|
| `embed` | iframe | for video / external |
|
|
83
83
|
|
|
84
|
+
## Build animations
|
|
85
|
+
|
|
86
|
+
Any element can carry an `animation` to reveal it as an entrance "build step",
|
|
87
|
+
the way PowerPoint/Keynote builds work:
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
element.animation = {
|
|
91
|
+
effect: "fly-in", // "fade" | "fly-in" | "zoom" | "wipe"
|
|
92
|
+
trigger: "on-click", // "on-click" (new step) | "with-prev" | "after-prev"
|
|
93
|
+
direction: "left", // for fly-in / wipe
|
|
94
|
+
duration: 500, // ms
|
|
95
|
+
delay: 0, // ms
|
|
96
|
+
order: 0, // build order, ascending; ties broken by element index
|
|
97
|
+
};
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
A slide's builds group into *click steps*: the first build and every
|
|
101
|
+
`on-click` build opens a new step; `with-prev` plays alongside that step's lead
|
|
102
|
+
and `after-prev` follows it. In `SlideViewer` / `PresenterView`, → / Space /
|
|
103
|
+
click fires the next step, then advances to the next slide once all builds have
|
|
104
|
+
run; ← steps back a whole slide shown fully built. Elements with no `animation`
|
|
105
|
+
are always visible; the editor canvas always shows everything. All effects are
|
|
106
|
+
pure CSS and honor `prefers-reduced-motion: reduce`. Edit builds in the
|
|
107
|
+
inspector's **Build** tab (per element) and the **Build order** list in slide
|
|
108
|
+
settings.
|
|
109
|
+
|
|
84
110
|
## Theme
|
|
85
111
|
|
|
86
112
|
```ts
|