OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add heygen-com/hyperframes --skill waapi
Web Animations API adapter patterns for HyperFrames. Use when authoring element.animate() motion, Animation currentTime seeking, document.getAnimations(), KeyframeEffect timing, fill modes, or native browser animations that must render deterministically in HyperFrames.
npx skills add heygen-com/hyperframes --skill waapi
HyperFrames can seek Web Animations API animations through its waapi runtime adapter. WAAPI is useful when you want native browser keyframes with JavaScript-created timing and no GSAP dependency.
element.animate(...) with finite duration and iterations.fill: "both" so seeked states persist.The adapter calls document.getAnimations(), sets each animation's currentTime to HyperFrames time in milliseconds, then pauses it.
iterations.animation.finished to mutate render-critical DOM.requestAnimationFrame, timers, or performance.now().delay or create the animation on an element whose visibility is controlled by HyperFrames timing.After editing a WAAPI composition:
packages/core/src/runtime/adapters/waapi.ts.Animation.currentTime: https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTimedocument.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();
});npx hyperframes lint
npx hyperframes validate