Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring""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.
scrambleColorstring""The colour of letters while they are scrambled; empty keeps the text colour.
speednumber50Milliseconds between steps.
maxIterationsnumber10How many steps the letters scramble before settling when not sequential; with hoverRadius, how long letters keep scrambling after the cursor passes.
sequentialbooleanfalseReveal 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.
useOriginalCharsOnlybooleanfalseScramble using only the letters already in the text.
charactersstringPOOLThe 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.
hoverRadiusnumber0With hover: only letters within this many pixels of the cursor scramble, and settle once it passes. 0 decrypts the whole text.
loopbooleanfalseAfter decrypting, hold, scramble again and repeat.
loopDelaynumber2000Milliseconds the decrypted text holds before scrambling again when looping.
classNamestringNoneClass names for revealed letters.
parentClassNamestringNoneClass names for the wrapper around all letters.
encryptedClassNamestringNoneClass names for letters that are still scrambled.

More text effects in Pro

View all

Related