Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

CipherReveal

Scrambled characters resolve progressively into readable text on view, hover or focus.

AnimationsText@gaudi/design-system/animations/CipherRevealView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { CipherReveal } from '@gaudi/design-system/animations/CipherReveal';

Usage

import { CipherReveal } from '@gaudi/design-system/animations/CipherReveal';
<CipherReveal text="Gaudi" />

Examples

Playground

Storybook

Reveal from the center

Storybook

API

7 props

Accessibility

The complete text is exposed once; scrambled characters are hidden from assistive technology. Pausing or reduced motion reveals the complete text. The outer span has no tab stop by default; focus replay applies when it receives focus.

Notes

  • Visual idea inspired by Decrypted Text from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.