@particle-academy/fancy-slides 0.2.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 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