Enigma Text
Your text starts as its real Enigma ciphertext (three rotors and a reflector, as the machine had) and each letter turns forward on its own rotor, a notch at a time, until it comes up, when a warm lamp lights it for a moment. Hovering runs it again from a new rotor setting, so the cipher is never the same twice.
Needs: None. Canvas 2D.
Customize
trigger
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | required | The text. It starts as its own ciphertext and rolls back to this. |
| trigger | "view" | "hover" | "both" | "both" | When it deciphers: on coming into view, on hover, or both. |
| speed | number | 34 | Notches a second each rotor turns. |
| stagger | number | 0.035 | Seconds between one letter starting and the next. |
| lamp | string | "#f2a531" | The lamp that lights each letter as it lands. |
| className | string | – | Class on the text. It takes its font from its surroundings. |
| style | CSSProperties | – | Style on the text. |