waapi

Web Animations API adapter patterns for HyperFrames. Use when authoring element.animate() motion, Animation currentTime seeking, document.getAnimations(),…

INSTALLATION
npx skills add https://github.com/heygen-com/hyperframes --skill waapi
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$27

## Stagger Pattern

document.querySelectorAll(".token").forEach((token, index) => {

const animation = token.animate(

[

{ transform: "translateY(24px)", opacity: 0 },

{ transform: "translateY(0)", opacity: 1 },

],

{

duration: 620,

delay: index * 80,

easing: "cubic-bezier(0.2, 0, 0, 1)",

fill: "both",

iterations: 1,

},

);

animation.pause();

});


## Good Uses

- Lightweight DOM motion where CSS keyframes are too rigid and GSAP is unnecessary.

- Generated animations from structured data.

- Simple timelines that can be represented as keyframes, delays, and offsets.

## Avoid

- Infinite `iterations`.

- Depending on `animation.finished` to mutate render-critical DOM.

- Running separate clocks with `requestAnimationFrame`, timers, or `performance.now()`.

- Animating layout properties when transforms and opacity can express the motion.

- Assuming clip-local start time is automatic. WAAPI adapter seeks document-level animation time; model clip offsets with `delay` or create the animation on an element whose visibility is controlled by HyperFrames timing.

## Validation

After editing a WAAPI composition:

npx hyperframes lint

npx hyperframes validate

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card