agentleFS
marvkrmarvkr/better-design/.agents/skills/animate-text/SKILL.md

animate-text

Skill612 starsChanged 7 months agoMITView on GitHub

Curated text animation catalog with exact JSON specs for headings, labels, counters, and text swaps. Use when an agent needs to pick or translate named effects like soft blur in, typewriter, shared axis, line reveal, stagger, crossfade, or kinetic builds into WAAPI, Motion, Framer Motion, GSAP, CSS, Lottie, Rive, or similar stacks.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. sakuraoxo-clio/sakura-animate-text★ 36100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as a text animation catalog backed by generated JSON contracts.

    line 8
  2. Very specific:

    Use assets/specs/<id>.json for a portable motion contract.

    line 10
  3. Distinctive:

    Use this skill when the request involves:

    line 16
  4. Very specific:

    If the user names an effect id, read assets/specs/<id>.json or run node scripts/get-spec.mjs <id>.

    line 29
  5. Very specific:

    Use assets/specs/<id>.json when the user wants a portable translation of the motion intent.

    line 33
  6. Very specific:

    Use assets/effects/<id>.json or node scripts/get-effect.mjs <id> when the user wants the exact generated animation behavior.

    line 34
  7. Very specific:

    If the user names a target animation library, treat that as binding.

    line 35
  8. Very specific:

    Treat showcase.stage as animation host requirements only.

    line 37
  9. Very specific:

    When applying an effect to an existing section, preserve that section's text.

    line 38
  10. Distinctive:

    If Node is unavailable, the core skill still works through the Markdown references and JSON assets alone.

    line 64
  11. Very specific:

    Do not substitute the requested animation library.

    line 73
  12. Very specific:

    When targeting Motion or GSAP, use the matching showcase.library_adapters.motion or showcase.library_adapters.gsap block for imports, …

    line 74
  13. Very specific:

    Read showcase.engine_notes and showcase.reproduction_notes carefully.

    line 75
  14. Distinctive:

    If a renderer recipe says to wait for a phase to complete, either await the animation/tween promise or sleep the computed phase total, not …

    line 77
  15. Distinctive:

    If a prose note conflicts with a JSON field, prefer the JSON.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Animate Text

Use this skill as a text animation catalog backed by generated JSON contracts.

Use assets/specs/<id>.json for a portable motion contract. Use assets/effects/<id>.json for exact animation reproduction, including content, renderer algorithm, playback, runtime, host requirements, rendering contract, and library adapters.

This skill ships 24 specs in total. The website currently showcases 20 of them.

When To Use

Use this skill when the request involves:

  • animating headings, labels, counters, editorial copy, or text swaps
  • matching a named effect id such as soft-blur-in, typewriter, shared-axis-y, or kinetic-center-build
  • choosing a motion pattern from a curated catalog and translating it into a target stack
  • reproducing the current animation behavior in another stack without relying on example components
  • implementing the same spec with WAAPI, Motion / motion.dev, GSAP, CSS, Lottie, Rive, or another renderer

Workflow

  1. Determine whether the user wants:
    • the exact site version of a visible effect
    • a portable translation of the motion contract
  2. If the user names an effect id, read assets/specs/<id>.json or run node scripts/get-spec.mjs <id>.
  3. Otherwise use references/catalog.md or optionally run:
    • node scripts/list-specs.mjs
    • node scripts/find-spec.mjs "<query>"
  4. Use assets/specs/<id>.json when the user wants a portable translation of the motion intent.
  5. Use assets/effects/<id>.json or node scripts/get-effect.mjs <id> when the user wants the exact generated animation behavior.
  6. If the user names a target animation library, treat that as binding. Follow showcase.library_selection and use only the matching showcase.library_adapters.<library> block for that effect.
  7. For exact reproduction, follow showcase.renderer, showcase.playback, showcase.timing, showcase.runtime, showcase.stage, showcase.rendering_contract, showcase.library_selection, and showcase.library_adapters over assumptions inferred from the portable spec alone.
  8. Treat showcase.stage as animation host requirements only. Do not copy typography, color, padding, card chrome, or page layout from the source website unless the user explicitly asks for that UI.
  9. When applying an effect to an existing section, preserve that section's text. Use showcase.content only as demo/fallback copy unless the user explicitly asks to reproduce the showcase copy.

Bundled Resources

  • references/catalog.md: compact summary of the bundled spec library
  • references/schema.md: field-level schema for portable specs and exact showcase effect recipes
  • references/selection-guide.md: heuristics for picking the right effect family
  • references/implementation-notes.md: translation notes for common animation stacks
  • assets/specs/*.json: portable motion contracts
  • assets/effects/*.json: exact generated animation recipes
  • assets/catalog.json: visible website catalog order and renderer overrides
  • assets/samples.json: sample copy used by the generated examples
  • assets/runtime-presets.json: runtime multipliers and loop timing presets
  • assets/stage-presets.json: animation host requirements, not presentation styling
  • assets/renderer-recipes.json: shared renderer algorithms
  • assets/library-adapters.json: WAAPI, Motion, and GSAP implementation mapping guidance

Optional Helper Scripts

The helper scripts are optional deterministic shortcuts. They require Node.js 20+.

  • node scripts/list-specs.mjs prints bundled spec metadata as JSON
  • node scripts/get-spec.mjs <id> prints one portable motion spec as JSON
  • node scripts/get-effect.mjs <id> prints one exact generated animation recipe as JSON
  • node scripts/find-spec.mjs "<query>" returns likely matches ranked by metadata

If Node is unavailable, the core skill still works through the Markdown references and JSON assets alone.

Translation Rules

  • Preserve target exactly: whole, per-character, per-word, or per-line.
  • Map enter and exit durations, easing, and stagger directly into the target stack.
  • Preserve transform, opacity, blur, scale, rotation, and spacing fields when the target stack supports them.
  • For layout-aware effects such as kinetic-center-build or short-slide-down, use the exact effect recipe instead of flattening the effect into a generic stagger.
  • For exact animation reproduction, preserve the showcase.renderer, showcase.playback, showcase.timing, showcase.runtime, showcase.stage, showcase.rendering_contract, and showcase.library_adapters fields from assets/effects/<id>.json.
  • Do not substitute the requested animation library. If the user asks for GSAP, import and use GSAP; if the user asks for Motion, import and use Motion; if the user asks for WAAPI, use Element.animate.
  • When targeting Motion or GSAP, use the matching showcase.library_adapters.motion or showcase.library_adapters.gsap block for imports, time-unit conversion, easing conversion, keyframe shape, completion, and renderer-specific notes.
  • Read showcase.engine_notes and showcase.reproduction_notes carefully. They describe stack-specific details required for visual parity.
  • For exact site behavior, implement the full showcase.playback loop. Do not stop at the first enter animation unless the user explicitly asks for a one-shot reveal.
  • If a renderer recipe says to wait for a phase to complete, either await the animation/tween promise or sleep the computed phase total, not both.

Notes

  • The public website uses a curated subset of the bundled library. The skill can still use additional bundled specs that are not currently visible on the website.
  • assets/specs/*.json are the authoritative portable motion contracts.
  • assets/effects/*.json are the authoritative exact animation reproduction contracts.
  • Hidden effects have "showcase": null in the exact effect recipe.
  • If a prose note conflicts with a JSON field, prefer the JSON.

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.