Lazy-ui
Lazy-ui
registry components
DocsComponentsBlocksChangelog
GitHub0Install
Navigation11 groups
Get StartedDocs
  • Introduction
  • Installation
  • Changelog
  • All Components
Background13 items
  • Wave CipherNew
  • Horizon CipherNew
  • Orbit CipherNew
  • Orbit BloomNew
  • Orbit MeshNew
  • Aurora MeshNew
  • Chroma FlowNew
  • Prism DriftNew
  • Shadow MeshNew
  • Slime BackgroundNew
  • NeumorphismNew
  • Ripple SurfaceNew
  • Liquid ChromeNew
Text Animate7 items
  • Shiny Text
  • Text WarpNew
  • Text RiseNew
  • Text SpinNew
  • Text ScrambleNew
  • Spinning TextNew
  • Text FlipNew
Animate6 items
  • Counter
  • Liquid RevealNew
  • Liquid TransitionNew
  • Matrix GridNew
  • Particle HaloNew
  • Bling TransitionNew
Effects2 items
  • Reveal Animate
  • Circle CipherNew
Forms2 items
  • Switch
  • Checkbox
Buttons3 items
  • Copy Button
  • GitHub Stars Button
  • Glass ButtonNew
Feedback1 item
  • Progress
Navigation1 item
  • Animated Tabs
Overlay1 item
  • Animate Tooltip
Device Mocks1 item
  • iPhoneNew

Text Scramble

Random glyph noise that resolves into the real text — fires on hover, mount, or first scroll into view.

text-scramble
Decode the signal.
0px

Customize

Edit props; preview updates instantly.

Customize
Trigger
Easing
Charset
Duration (ms)
800ms
Tick (ms)
30ms

Props

Props accepted by TextScramble.

PropTypeDefaultDescription
textstring—Final, locked-in text. Used as `aria-label` so screen readers always read the plain string regardless of mode.
trigger"hover" | "mount" | "view""hover"What kicks off the animation. `hover` runs on mouse-enter; `mount` plays once on first render; `view` plays the first time the element scrolls into the viewport.
easing"linear" | "ease-in" | "ease-out" | "ease-in-out""linear"Easing curve applied to the per-letter reveal schedule. `ease-out` resolves quickly at the start and slows toward the end; `ease-in` does the opposite.
durationnumber800Total animation duration in ms (minimum 50ms).
tickMsnumber30Frame interval in ms. Lower values refresh the scramble noise more frequently (minimum 8ms).
charsetstring"X$@aHzo0y#?*01+"Glyphs sampled during the scramble noise — used by every mode.
replayKeystring | number | boolean—Change this value to replay the animation imperatively — bind it to a counter you increment on click, etc.
classNamestring—Extra class names merged onto the root span.

Installation

Choose CLI for the one-line shadcn install, or copy the file manually.

npx shadcn@latest add https://2lazyui.com/r/text-scramble.json

Usage

Import the component and drop it into a render.

demo.tsx13 lines
import { TextScramble } from "@/components/lazy-ui/text-animate/text-scramble";

export function Demo() {
  return (
    <TextScramble
      text="Hover to decode."
      trigger="hover"
      easing="ease-out"
      duration={800}
      className="text-3xl font-mono text-neutral-100"
    />
  );
}
Registryv0.1
Animated TabsNavigationCopy ButtonButtonsGitHub Stars ButtonButtonsReveal AnimateEffectsCounterAnimateShiny TextText AnimateText WarpText AnimateText RiseText AnimateText SpinText AnimateText ScrambleText AnimateSpinning TextText AnimateText FlipText AnimateProgressFeedbackSwitchFormsGlass ButtonButtonsCheckboxFormsiPhoneDevice MocksCircle CipherEffectsLiquid RevealAnimateLiquid TransitionAnimateWave CipherBackgroundHorizon CipherBackgroundOrbit CipherBackgroundOrbit BloomBackgroundOrbit MeshBackgroundMatrix GridAnimateParticle HaloAnimateAurora MeshBackgroundChroma FlowBackgroundPrism DriftBackgroundShadow MeshBackgroundSlime BackgroundBackgroundNeumorphismBackgroundRipple SurfaceBackgroundLiquid ChromeBackgroundBling TransitionAnimateAnimate TooltipOverlayPricing · ClassicBlocks · PricingPricing · BentoBlocks · PricingPricing · EditorialBlocks · PricingPricing · MatrixBlocks · PricingPricing · UsageBlocks · Pricing
Browse all 42 components
Up nextRoadmap
DialogPlanned
TabsPlanned
TooltipPlanned
CommandPlanned
Help the project
Star on GitHubSuggest a componentRead the DESIGN.md