@mkbabb/keyframes.js 6.2.0 → 6.2.1
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 +1 -1
- package/dist/engine/index.d.ts +8 -5
- package/dist/engine/index.js +759 -766
- package/dist/keyframes.d.ts +8 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ The `KeyframesAnimation` object drives `CSSKeyframesAnimation` and `AnimationGro
|
|
|
66
66
|
### `AnimationOptions`
|
|
67
67
|
|
|
68
68
|
- `duration`: time in milliseconds (default: 1000)
|
|
69
|
-
- `delay`: time in milliseconds before the animation begins (default: 0)
|
|
69
|
+
- `delay`: time in milliseconds before the animation begins (default: 0) — a phase on the driving clock, taken once per play. Until it elapses the animation is in its before-phase and `fillMode` decides what it paints (`backwards`/`both`: the 0% frame; otherwise nothing); `animationstart` fires when it ends. In an `AnimationGroup` each child's delay offsets it on the group's one clock, so `stagger` delays fed to the children stagger them
|
|
70
70
|
- `iterationCount`: number of repetitions (default: 1)
|
|
71
71
|
- `direction`: `normal`, `reverse`, `alternate`, `alternate-reverse`
|
|
72
72
|
- `fillMode`: `none`, `forwards`, `backwards`, `both`
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -249,9 +249,9 @@ export declare class AnimationGroup<V extends Vars> {
|
|
|
249
249
|
/** The master elapsed time a child's current position sits at (its delay +
|
|
250
250
|
* its completed iterations + its `t`) — the read `seek` inverts. */
|
|
251
251
|
elapsedOf(nameOrAnim: string | KeyframesAnimation<V>): number;
|
|
252
|
-
/** Advance all child animations to absolute clock `t`. SYNC
|
|
253
|
-
*
|
|
254
|
-
*
|
|
252
|
+
/** Advance all child animations to absolute clock `t`. SYNC (J.W6 S1; 6.2.1:
|
|
253
|
+
* a child's delay is a phase on `t`, never a sleep): a thenable only on the
|
|
254
|
+
* over-`YIELD_BATCH` yield path. */
|
|
255
255
|
advanceTo(t: number): this | Promise<this>;
|
|
256
256
|
/** The completion front-door (G.W13) — `await group.finished` resolves once
|
|
257
257
|
* the in-flight composite play settles. Exposes the ONE held `_playingPromise`
|
|
@@ -1315,9 +1315,9 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
|
|
|
1315
1315
|
* allocation-free.
|
|
1316
1316
|
*/
|
|
1317
1317
|
interpFrames(t: number, transformFrames?: boolean, out?: FlatAuthoredValues): FlatAuthoredValues;
|
|
1318
|
-
onStart():
|
|
1318
|
+
onStart(): void;
|
|
1319
1319
|
onEnd(): void;
|
|
1320
|
-
advanceTo(t: number): number
|
|
1320
|
+
advanceTo(t: number): number;
|
|
1321
1321
|
/** One frame of the standalone rAF play path (driven by `RAFPlayback.loop`). */
|
|
1322
1322
|
private _frame;
|
|
1323
1323
|
/** The completion front-door (G.W13) — `await anim.finished` resolves once
|
|
@@ -1612,6 +1612,9 @@ declare class PlaybackState {
|
|
|
1612
1612
|
* next rAF tick re-anchors the play to the first presented frame
|
|
1613
1613
|
* (`presentAnchor`). Any external `startTime` write clears it. */
|
|
1614
1614
|
anchorTick: number | undefined;
|
|
1615
|
+
/** True from a delayed play's anchor until its clock reaches it: the CSS
|
|
1616
|
+
* before-phase, whose end opens the active phase (`animationstart`). */
|
|
1617
|
+
startOwed: boolean;
|
|
1615
1618
|
pausedTime: number;
|
|
1616
1619
|
t: number;
|
|
1617
1620
|
iteration: number;
|