Diogenesoftoronto/keating / video/keating-surface-tour/.agents/skills/hyperframes-animation
hyperframes-animation
VerifiedAll animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.
scripts/animation-map-sampling.test.mjs
View on GitHubimport assert from "node:assert/strict";
import test from "node:test";
import { sampleTweenBboxes } from "./animation-map-sampling.mjs";
test("samples every tween time in one browser evaluation", async () => {
const calls = [];
const seekTimes = [];
const originalGlobals = {
window: globalThis.window,
document: globalThis.document,
getComputedStyle: globalThis.getComputedStyle,
};
let currentTime = 0;
globalThis.window = { __hf: { seek: (time) => (currentTime = time) } };
globalThis.document = {
querySelector: () => ({
getBoundingClientRect: () => ({ x: currentTime, y: 20, width: 30, height: 40 }),
}),
};
globalThis.getComputedStyle = () => ({ opacity: "1", visibility: "visible", display: "block" });
const page = {
async evaluate(callback, payload) {
calls.push(payload);
const originalSeek = globalThis.window.__hf.seek;
globalThis.window.__hf.seek = (time) => {
seekTimes.push(time);
originalSeek(time);
};
return callback(payload);
},
};
try {
const result = await sampleTweenBboxes(page, "#card", [1, 2, 3]);
assert.deepEqual(result, [
{ t: 1, x: 1, y: 20, w: 30, h: 40, opacity: 1, visible: true },
{ t: 2, x: 2, y: 20, w: 30, h: 40, opacity: 1, visible: true },
{ t: 3, x: 3, y: 20, w: 30, h: 40, opacity: 1, visible: true },
]);
assert.deepEqual(seekTimes, [1, 2, 3]);
assert.deepEqual(calls, [{ selector: "#card", times: [1, 2, 3] }]);
} finally {
globalThis.window = originalGlobals.window;
globalThis.document = originalGlobals.document;
globalThis.getComputedStyle = originalGlobals.getComputedStyle;
}
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |