BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/motiq/decrypt-text

Decrypt Text

motiq/decrypt-text
FreeComponent

Copy that arrives decoded rather than typed: every glyph boils from the first frame and character i locks at 350 + i·55ms ± 120ms behind a 420ms accent flash. Mount / in-view / hover triggers, a monospace terminal variant, SSR-readable text, reduced-motion safe.

Live preview

live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.motiq.dev/r/decrypt-text.json

Source

registry/text/decrypt-text.tsxwww.motiq.dev/r/decrypt-text.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import { useReducedMotion, useVisibilityPause } from "@/lib/motiq";
7
8/* -------------------------------------------------------------------------- */
9/* Types */
10/* -------------------------------------------------------------------------- */
11
12/** What starts the first decrypt run. Hover re-triggering is separate. */
13export type DecryptTextTrigger = "mount" | "inview" | "hover";
14
15/** `display` = headline scale; `terminal` = mono CLI card with prompt + caret. */
16export type DecryptTextVariant = "display" | "terminal";
17
18export interface DecryptTextProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
19 /** The real string. Rendered readable on the server and to screen readers. */
20 text: string;
21 /** Scramble pool each unresolved character cycles through. */
22 glyphs?: string;
23 /** Glyph cycle floor in ms (each char jitters between `speed` and `speed + 35`). */
24 speed?: number;
25 /** Per-character lock-in stagger in ms. */
26 stagger?: number;
27 /** Delay before the first character can lock, in ms. */
28 startDelay?: number;
29 /** Random spread applied to every character's lock time, in ms (± this value). */
30 jitter?: number;
31 /** What starts the first run. */
32 trigger?: DecryptTextTrigger;
33 /** Visual treatment. */
34 variant?: DecryptTextVariant;
35 /** Re-run automatically this many ms after settling; `false` runs once. */
36 loop?: number | false;
37 /** Re-scramble on pointer enter (1.5s cooldown). */
38 retriggerOnHover?: boolean;
39 /** Deterministic seed for the per-character jitter (SSR-stable). */
40 seed?: number;
41 /** Element tag for the rendered text. */
42 as?: "h1" | "h2" | "h3" | "h4" | "p" | "span" | "div";
43 /** Force the static, resolved variant regardless of system preference. */
44 reducedMotion?: boolean;
45 /** Fires each time the line finishes resolving. */
46 onDecrypted?: () => void;
47}
48
49interface CharItem {
50 /** Index into the flat character list — drives the stagger ramp. */
51 i: number;
52 ch: string;
53}
54
55/* -------------------------------------------------------------------------- */
56/* Constants */
57/* -------------------------------------------------------------------------- */
58
59const POOL_DISPLAY = "#%&@$?!*+=/{}[]<>~^";
60const POOL_TERMINAL = "abcdef0123456789$#%&*+=/|_~";
61// … truncated

What it pulls in

Other registry items

  • https://motiq.dev/r/utils.json
  • https://motiq.dev/r/primitives.json

Files it writes

  • registry/text/decrypt-text.tsx

Facts

Registry
motiq
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-12
Last confirmed
today

Go to the source

Docs on motiq www.motiq.dev RMahammad/motiq on GitHub Raw registry item This item as JSON

More from motiq

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Activity Streamactivity-streammotiqComponentsFree1 dep
Adaptive Safe-Zone Gridadaptive-safe-zone-gridmotiqComponentsFreeno deps
Agent Run Timelineagent-run-timelinemotiqComponentsFree1 dep
AI Response Streamai-response-streammotiqComponentsFree1 dep
Animated Accordionanimated-accordionmotiqComponentsFree2 deps
Animated Buttonanimated-buttonmotiqComponentsFree1 dep
Animated Dialoganimated-dialogmotiqComponentsFree2 deps
Animated Gridanimated-gridmotiqComponentsFree2 deps
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex