Skip to content

Ciphering Text

YuraVolk edited this page Dec 11, 2019 · 3 revisions

Ciphering Text

Out of 3 text effects, ciphering text is the rarest. It may provide beautiful effects if used correctly.

Definition: Ciphering Text is text transition from one text to another. If letter is not the same as in other text, letter is replaced by special symbol, that is later replaced by correct letter.

If you want to implement this script by your own, follow these steps:

  1. Create function to cipher letter to symbols and make it normal. It should only change one letter. Use IIFEs and Closures to make it work.
  2. Write function to split text into spans.
  3. Write function to execute function of letter ciphering char by char (call function in a loop)
  4. Add event listeners.

Preview

Clone this wiki locally