The exported
FrameAdapter interface is experimental v0 API. Its signatures
may change before v1.FrameAdapter when you are building a custom host around a seekable animation object.
Interface
Adapt a GSAP timeline
@hyperframes/core includes a helper for a GSAP-like timeline:
Contract
A custom adapter must:- return a finite, non-negative frame count;
- support forward, backward, and random seeks;
- return the same state when the same frame is requested again;
- avoid wall-clock timers and unseeded randomness;
- finish asynchronous work before the frame is captured;
- release listeners and other resources in
destroy().
Continue
Read Deterministic rendering for the timing rules or@hyperframes/core for the package exports.