Skip to content
cccskills
FreePublished on GitHub

text-scramble

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.

The English summary is being prepared. Showing the original description.

See how to install

Files included (4)

  • SKILL.md1.9 KB
  • preview.html1.7 KB
  • recipe.motion.yaml1.8 KB
  • text-scramble.js2.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

  1. Copy text-scramble.js into the project and link it.
  2. Mark the element:
    <span class="scramble" data-text="motion, anything"></span>
    
  3. Auto-plays data-text on load. To change the phrase later: scrambleTo(el, "next phrase").

Accessibility & performance

  • Under prefers-reduced-motion the final text appears instantly (no scramble). The resolved data-text is 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Back In Down — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

Back In Left — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

Back In Right — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

Back In Up — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

Back Out Down — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

Back Out Left — a drop-in CSS keyframe animation from Animate.css (Hippocratic-2.1, © Daniel Eden). No JS required. Honors prefers-reduced-motion. Use restrained; attribute Animate.css.

The English summary is being prepared. Showing the original description.

nexu-io/motion-anything896Updated Jul 7, 2026

See all skills by nexu-io

Report a problem with this skill