Carregando…
Carregando…
Carregando…Text that decodes character-by-character while unrevealed characters flip through random glyphs — fires once on view. Adapted from Aceternity UI.
$ npx kikitocn add encrypted-text@/lib/utilsmotionimport { EncryptedText } from "@/components/ui/cn/encrypted-text/EncryptedText";
export function EncryptedTextExample() {
return (
<EncryptedText text="Exemplo" />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
text* | string | — | Texto final revelado |
revealDelayMs | number | 50 | ms entre revelar cada caractere real |
flipDelayMs | number | 50 | ms entre trocas de glifo aleatório |
charset | string | — | Conjunto de caracteres do embaralhamento |
encryptedClassName | string | — | Classe nos caracteres embaralhados |
revealedClassName | string | — | Classe nos caracteres revelados |
className | string | — | Classes CSS extras |
Encrypted Text — decodifica ao entrar na viewport
Scramble Hover — passe o mouse pra decodificar