Skip to content
synccn

Text Scramble

Characters scramble and resolve left to right.

Hover the text to run it again.

Installation

$ pnpm dlx shadcn@latest add @synccn/text-scramble

First time in this project? Connect synccn with one command.

Usage

import { TextScramble } from "@/components/ui/shimmer-text";<TextScramble text="SYNC COMPLETE" />

API reference

Generated from the component's TypeScript types, so it always matches the code.

TextScramble

Scrambles characters and resolves them left to right. Re-runs on hover.

  • textrequired
    string

    Final text.

  • speed
    number

    Default 28

    Milliseconds per frame.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA attributes: aria-hidden, aria-label