waapi

Map WAAPI animation currentTime to HyperFrames time for deterministic playback.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/cvenwu/AiFlow --skill waapi-cvenwu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: waapi
Source: https://github.com/cvenwu/AiFlow/tree/main/skills/waapi
Command: npx skills add https://github.com/cvenwu/AiFlow --skill waapi-cvenwu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Web Animations API (WAAPI) animations can rely on the browser's timeline, which makes deterministic playback difficult inside HyperFrames. This Skill provides a WAAPI adapter that maps WAAPI timing to the HyperFrames clock, enabling synchronized and predictable animations.

Core Features & Use Cases

  • WAAPI-to-HyperFrames time mapping to drive browser animations with the HyperFrames timeline.
  • Deterministic playback by setting animation.currentTime to HyperFrames time and pausing after initialization.
  • Use Case: integrate native WAAPI animations in HyperFrames scenes that require precise timing and frame-accurate rendering.

Quick Start

Create a WAAPI animation on a target element and pause it to render deterministically with HyperFrames.

Frequently Asked Questions about waapi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make Web Animations API deterministic in HyperFrames?

To make Web Animations API deterministic in HyperFrames, map each WAAPI animation's currentTime to the HyperFrames timeline in milliseconds and pause it after setup to prevent render-time variability.

Why do my browser animations drift out of sync with the HyperFrames timeline?

Browser animations drift because WAAPI relies on the browser's internal timeline. Synchronize them by applying a WAAPI adapter that maps WAAPI timing to the HyperFrames clock for predictable playback.

Can I use native WAAPI animations for frame-accurate rendering in HyperFrames?

Yes, you can use native WAAPI animations for frame-accurate rendering by setting the animation's currentTime to the HyperFrames time and pausing it after initialization to ensure precise timing synchronization.

What is the best way to synchronize WAAPI timing to a custom clock?

The best way to synchronize WAAPI timing to a custom clock is mapping the WAAPI animation's currentTime directly to the HyperFrames time in milliseconds, ensuring deterministic playback without relying on the browser timeline.

When should I pause a WAAPI animation to ensure deterministic playback?

You should pause a WAAPI animation immediately after initializing it to avoid render-time variability, allowing the HyperFrames timeline to exclusively drive the animation's currentTime for deterministic playback.