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.mjs
View on GitHub/**
* Seek and measure every sample for one tween inside a single browser
* evaluation. GSAP/HyperFrames seeks update DOM state synchronously, so a
* separate CDP round trip and wall-clock sleep per sample only adds latency.
*/
export async function sampleTweenBboxes(page, selector, times) {
return page.evaluate(
({ selector: sel, times: sampleTimes }) => {
const seek = (time) => {
if (window.__hf && typeof window.__hf.seek === "function") {
window.__hf.seek(time);
return;
}
const timelines = window.__timelines;
if (!timelines) return;
for (const timeline of Object.values(timelines)) {
if (typeof timeline.seek === "function") timeline.seek(time);
}
};
return sampleTimes.map((time) => {
seek(time);
const el = document.querySelector(sel);
if (!el) return { t: time, x: 0, y: 0, w: 0, h: 0, missing: true };
const rect = el.getBoundingClientRect();
const style = getComputedStyle(el);
return {
t: time,
x: Math.round(rect.x),
y: Math.round(rect.y),
w: Math.round(rect.width),
h: Math.round(rect.height),
opacity: parseFloat(style.opacity),
visible: style.visibility !== "hidden" && style.display !== "none",
};
});
},
{ selector, times },
);
}
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 |