Pimjo has acquired Sera UI πŸŽ‰ β€” Learn More

React Decrypting Text

A mesmerizing text animation component that simulates the process of decrypting or revealing text character by character. Perfect for creating dramatic reveals, loading states, or adding a cyberpunk aesthetic to your applications.

🎬 Live Demo

Watch the decrypting animation in action:

✨ Features

  • πŸ” Scrambling Effect: Characters scramble with random symbols before revealing the final text
  • ⚑ Customizable Speed: Control the animation speed to match your design needs
  • 🎯 Character-by-Character Reveal: Progressive revelation from left to right
  • 🎨 Smooth Transitions: Built with Framer Motion for buttery smooth animations
  • πŸ“± Responsive Design: Adapts beautifully to different screen sizes
  • πŸ”§ TypeScript Support: Fully typed for better development experience

πŸš€ Quick Start

Basic Usage

Loading...

Advanced Example

Loading...

πŸ“‹ API Reference

Props

PropTypeDefaultDescription
targetTextstringRequiredThe final text to be revealed after decryption
speednumber8Controls animation speed (lower = faster, higher = slower)

Animation Behavior

  • Character Pool: Uses A-Z, a-z, and special symbols (!@#$%^&*()-+=[]{}|;:,.<>?)
  • Reveal Pattern: Characters are revealed sequentially from left to right
  • Space Handling: Spaces are preserved and not scrambled
  • Performance: Uses requestAnimationFrame for smooth 60fps animations

🎨 Styling Guide

The component uses these default classes:

Loading...

Custom Styling

Loading...

🎯 Use Cases

1. Loading States

Perfect for indicating system processes or data loading:

Loading...

2. Hero Sections

Create dramatic text reveals for landing pages:

Loading...

3. Gaming Interfaces

Add cyberpunk aesthetics to game UIs:

Loading...

4. Terminal Simulations

Simulate command-line interfaces:

Loading...

πŸ”§ Customization Examples

Slow Dramatic Reveal

Loading...

Fast Hacker-Style

Loading...

Multi-line Poetry

Loading...

πŸŽͺ Interactive Playground

Try different configurations and see the results instantly:

πŸ”¬ Experiment Zone

Modify the component above using the reload button to see different speed settings and text combinations.

Speed Settings:
  • β€’ Speed 1-3: Lightning fast
  • β€’ Speed 4-8: Balanced
  • β€’ Speed 9-15: Dramatic slow
Best Practices:
  • β€’ Use monospace fonts
  • β€’ Dark backgrounds work best
  • β€’ Keep text concise for impact

🚨 Performance Notes

  • Uses requestAnimationFrame for optimal performance
  • Automatically cleans up animations on unmount
  • Minimal re-renders with efficient state management
  • Handles edge cases like empty strings and special characters

🎭 Animation Inspiration

This component draws inspiration from:

  • Matrix-style digital rain effects
  • Cyberpunk terminal interfaces
  • Hacker movie decryption sequences
  • Retro computer boot screens

Perfect for creating that authentic "digital archaeology" feeling where secrets are gradually unearthed from the digital realm! πŸ•΅οΈβ€β™‚οΈβœ¨