agentleFS
ViviBeriViviBeri/webcraft-pro/skills/animation-performance/SKILL.md

animation-performance

Skill11 starsChanged 11 days agoMITView on GitHub

Use when profiling, optimizing or debugging animation smoothness, rendering cost, layout shifts, scroll performance or animation lifecycle leaks.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use interface-review, better-typography and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnasX7Skill

    interface-review

    Reviews your work across multiple categories like UI, typography, layout, color, writing and accessibility and gives you a detailed analysis of the findings.

    Also in 4 projects that use this

  • AnasX7Skill

    better-typography

    Focuses on type scale, spacing, sizing, variable fonts, OpenType features, wrapping, truncation and other details that make typography feel great across your product.

    Also in 5 projects that use this

  • boraoztuncSkill

    stageshow

    Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say "faux UI". React and plain CSS.

    Also in 3 projects that use this

  • allanninalSkill

    differential-review

    Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and prevents security regressions.

    Also in 3 projects that use this

  • OpenAISkill

    hyperframes-registry

    Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, and registry discovery.

    Also in 3 projects that use this

  • OpenAISkill

    hyperframes-cli

    HyperFrames CLI tool — hyperframes init, lint, inspect, preview, render, transcribe, tts, doctor, browser, info, upgrade, compositions, docs, benchmark. Use when scaffolding a project, linting, validating, inspecting visual layout in compositions, previewing in the studio, rendering to video, transcribing audio, generating TTS, or troubleshooting the HyperFrames environment.

    Also in 3 projects that use this

  • +6 more from AnasX7

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 17 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep animation responsive and stable on real devices by measuring bottlenecks, limiting unnecessary work and cleaning up resources.

    line 10
  2. Distinctive:

    Use browser performance tooling and frame diagnostics when available.

    line 17
  3. Distinctive:

    Prefer transform and opacity for frequent visual movement when they match the desired effect.

    line 20
  4. Distinctive:

    Avoid continuously animating layout properties such as width, height, top, left or margins unless the effect requires layout changes.

    line 21
  5. Distinctive:

    Do not add will-change broadly or permanently.

    line 22
  6. Distinctive:

    Avoid large blur, filter, shadow and backdrop-filter animations without evidence they perform acceptably on target devices.

    line 23
  7. Distinctive:

    Avoid per-frame DOM reads/writes and repeated layout measurements.

    line 27
  8. Distinctive:

    Do not create a new timeline or ScrollTrigger inside a high-frequency callback.

    line 28
  9. Distinctive:

    Use GSAP callbacks and ticker only when the interaction needs them.

    line 29
  10. Distinctive:

    Avoid retaining detached DOM nodes in long-lived closures.

    line 34
  11. Distinctive:

    Prefer native scrolling and avoid scroll-jacking.

    line 36
  12. Distinctive:

    Use ScrollTrigger's measured trigger model instead of custom per-frame viewport polling.

    line 37
  13. Distinctive:

    Avoid excessive pinning, nested scrollers and many independent scrubbed effects.

    line 38
  14. Distinctive:

    Verify touch scrolling and low-powered mobile devices.

    line 40
  15. Distinctive:

    Check frame stability, main-thread activity, layout shifts and memory/resource behavior.

    line 43
  16. Distinctive:

    Test reduced motion and non-animated fallbacks.

    line 44
  17. Distinctive:

    Avoid promoting many elements to layers.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Animation Performance

Objective

Keep animation responsive and stable on real devices by measuring bottlenecks, limiting unnecessary work and cleaning up resources.

Workflow

  1. Reproduce and measure
    • Capture the exact route, viewport, device class, browser and interaction that feels slow.
    • Establish whether the problem is scripting, style recalculation, layout, paint, compositing, asset loading or excessive simultaneous animation.
    • Use browser performance tooling and frame diagnostics when available.
    • Record a baseline before changing code.
  2. Choose efficient properties
    • Prefer transform and opacity for frequent visual movement when they match the desired effect.
    • Avoid continuously animating layout properties such as width, height, top, left or margins unless the effect requires layout changes.
    • Do not add will-change broadly or permanently; use it only after profiling demonstrates a benefit and remove it when no longer needed.
    • Avoid large blur, filter, shadow and backdrop-filter animations without evidence they perform acceptably on target devices.
  3. Reduce work
    • Animate only visible or relevant elements.
    • Limit simultaneous timelines, stagger groups and continuous loops.
    • Avoid per-frame DOM reads/writes and repeated layout measurements.
    • Do not create a new timeline or ScrollTrigger inside a high-frequency callback.
    • Use GSAP callbacks and ticker only when the interaction needs them.
  4. Manage lifecycle
    • Revert animations and ScrollTriggers when their component or route is removed.
    • Disconnect observers and remove listeners.
    • Prevent duplicate initialization after route transitions, hot reload or repeated mounts.
    • Avoid retaining detached DOM nodes in long-lived closures.
  5. Optimize scroll interactions
    • Prefer native scrolling and avoid scroll-jacking.
    • Use ScrollTrigger's measured trigger model instead of custom per-frame viewport polling.
    • Avoid excessive pinning, nested scrollers and many independent scrubbed effects.
    • Refresh measurements only after layout changes that affect trigger positions.
    • Verify touch scrolling and low-powered mobile devices.
  6. Verify improvements
    • Compare the same interaction before and after the change.
    • Check frame stability, main-thread activity, layout shifts and memory/resource behavior.
    • Test reduced motion and non-animated fallbacks.
    • Confirm the visual result remains correct and no behavior was removed to hide a performance issue.

Common AI failure mode

Failure: An agent optimizes animation by promoting every moving element to its own layer with permanent will-change, assuming transforms are always free.

Why it matters: Excessive layer creation consumes GPU memory and increases rasterization and compositing work. On constrained devices, the attempted optimization can cause more dropped frames, memory pressure, and jank than the original animation.

Symptoms:

  • Frame rate degrades as more elements animate or become promoted.
  • Paint, rasterization, memory, or compositing cost rises despite fewer layout operations.
  • The implementation keeps layers or continuous animation work after elements leave the viewport or unmount.

Prevention: Profile the same interaction on representative devices before changing properties. Promote only elements where traces demonstrate a benefit, scope will-change to the active interaction, and remove it afterward. Pause offscreen work where appropriate, clean up timelines and observers, and compare frame stability, memory, paint, and compositing before and after. Preserve reduced-motion and non-animated behavior.

Completion criteria

The bottleneck is measured, the change addresses its cause, lifecycle resources are released, visual and interaction behavior is preserved, and the same scenario is re-tested on representative devices.

Rendering diagnosis details

Separate scripting, style recalculation, layout, paint, compositing and asset decode costs before choosing an optimization. Transform and opacity are often good candidates for frequent animation, but large layers, filters, blending, rasterization and device memory can still make them expensive.

  • Inspect paint flashing, layer composition and frame timelines where browser tooling is available.
  • Avoid promoting many elements to layers; layer memory and compositing overhead can outweigh the benefit.
  • Batch layout reads before writes when custom measurement is unavoidable.
  • Pause or remove continuous work when the owning view is hidden, inactive or unmounted, where the interaction permits it.
  • Record the same route, device class, viewport and interaction for before/after comparisons.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.