OPUS/UI

Navigation

Scramble Text

A decoder effect — characters cycle through random glyphs and lock in left to right. Plays on mount, on view or on hover.

rAFhover2 files · 90 locdeps: clsx, tailwind-merge
ACCESS GRANTEDHover to decrypt the payload

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/scramble-text.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs scramble-text

Usage

import { ScrambleText } from "@/components/opus/text/scramble-text";

<ScrambleText text="ACCESS GRANTED" trigger="view" className="font-mono" />

API

PropTypeDefaultDescription
textstring—Final text (also the aria-label).
trigger"mount" | "view" | "hover""view"When to play.
speednumber32ms per character settle.
charsetstring—Glyphs used while scrambling.
asElementType"span"Element to render.

Notes

  • Use a monospaced font to stop the width from jittering while it scrambles.

Command palette