Text scramble

From nexu-io/motion-anything · View interactive version

Text scramble is an AI agent skill from the GitHub repository nexu-io/motion-anything. 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

Skill file

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

When NOT to use it (restraint)

How to apply

  1. Copy text-scramble.js into the project and link it.
  2. Mark the element:

```html

<span class="scramble" data-text="motion, anything"></span>

```

  1. Auto-plays data-text on load. To change the phrase later: scrambleTo(el, "next phrase").

Accessibility & performance

data-text is always the real content.

Framework notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.