Text Scramble
Designtext-scrambleText Scramble is an Agent Skill for design published in the nexu-io/motion-anything repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Resolve one short headline from random glyphs — a techy decode reveal. One short line only; keep it fast. The resolved text is the real, accessible content; under prefers-reduced-motion it appears instantly with no scramble. Avoid on body copy and calm/luxury tones.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/nexu-io/motion-anything/blob/HEAD/recipes/web/text-scramble/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/text-scramble, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
text-scramble
A line of text that resolves from random glyphs. Part of
motion-anything; obeys MOTION-SPEC.md. Technique
popularized by Codrops, reimplemented dependency-free.
When to use it
- A hero word / short headline with a technical or futuristic tone; cycling a few phrases on one line.
When NOT to use it (restraint)
- Long text or body copy — unreadable while scrambling. One short line.
- Calm / editorial / luxury tones (feels gimmicky).
How to apply
- Copy
text-scramble.jsinto the project and link it. - Mark the element:
<span class="scramble" data-text="motion, anything"></span> - Auto-plays
data-texton load. To change the phrase later:scrambleTo(el, "next phrase").
Accessibility & performance
- Under
prefers-reduced-motionthe final text appears instantly (no scramble). The resolveddata-textis always the real content. - Swaps text content on rAF; keep the line short so it stays cheap.
Framework notes
- React: keep a ref and call
scrambleTo(ref.current, text)on mount / when the phrase changes.