Scramble Decode
Text that decodes from scrambled glyphs into the real letters, on hover, in view or on click, all at once or near the cursor.
pixikit.com/docs/effects/scramble-decode
Customize
Effect
Scramble color
Speed60ms
Max iterations10
Sequential
Reveal direction
Use original chars only
Characters
Animate on
Click mode
Hover radius100px
Loop
Loop delay2000ms
Props
17| Name | Type | Default | Description |
|---|---|---|---|
text | string | "" | The text to decrypt. |
effect | "scramble" | "flip" | "fade" | "scramble" | How letters decode: scramble swaps glyphs in place, flip rolls each glyph in vertically and lands with a soft bounce, fade keeps scrambled glyphs faint and brightens them as they resolve. |
scrambleColor | string | "" | The colour of letters while they are scrambled; empty keeps the text colour. |
speed | number | 50 | Milliseconds between steps. |
maxIterations | number | 10 | How many steps the letters scramble before settling when not sequential; with hoverRadius, how long letters keep scrambling after the cursor passes. |
sequential | boolean | false | Reveal one letter per step instead of all at once. |
revealDirection | "start" | "end" | "center" | "random" | "start" | Where the sequential reveal starts; random uncovers the letters in a shuffled order. |
useOriginalCharsOnly | boolean | false | Scramble using only the letters already in the text. |
characters | string | POOL | The pool of characters used while scrambling. |
animateOn | "view" | "hover" | "inViewHover" | "click" | "hover" | What starts the decryption; view and click start scrambled, so the real text never flashes first. |
clickMode | "once" | "toggle" | "once" | With click: decrypt once, or toggle back and forth. |
hoverRadius | number | 0 | With hover: only letters within this many pixels of the cursor scramble, and settle once it passes. 0 decrypts the whole text. |
loop | boolean | false | After decrypting, hold, scramble again and repeat. |
loopDelay | number | 2000 | Milliseconds the decrypted text holds before scrambling again when looping. |
className | string | None | Class names for revealed letters. |
parentClassName | string | None | Class names for the wrapper around all letters. |
encryptedClassName | string | None | Class names for letters that are still scrambled. |