0.1.6 • Published 8 months ago

drumst0ck-terminal-effects v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Terminal Text Effect

A React component that creates a terminal-like text effect with hover animations. Perfect for adding a retro and tech-savvy touch to your text.

Installation

npm install terminal-text-effect

Usage

import { TerminalText } from "terminal-text-effect";

function App() {
  return (
    <>
      {/* Basic version */}
      <TerminalText text="Hello World" />

      {/* Version with background */}
      <TerminalText
        text="Hello World"
        variant="square"
        textColor="#00ff00"
        backgroundColor="#000"
      />
    </>
  );
}

Props

PropTypeDefaultDescription
textstring-Text to display
variant'default' | 'square' | 'color''default'Animation type
textColorstring'currentColor'Text color
backgroundColorstring-Background color (only for variant="square")
classNamestring-Additional CSS classes

Variants

  • default: Only shows the random characters effect
  • square: Adds an animated background after the effect
  • color: Changes colors during animation

Features

  • 🎮 Three animation variants
  • 🔤 Random characters animation
  • 🎨 Fully customizable (colors, variants)
  • ⚡️ Smooth animations with GSAP
  • 🔥 Hover activation

Dependencies

  • GSAP for fluid animations
  • React 16.8+ (hooks)

License

MIT

0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago