Skip to main content

Beautiful and smooth text animations for terminal output

Project description

Smooth Text Animation 🎨

Beautiful and smooth text animations for terminal output in Python.

Features ✨

  • 10+ animation effects for terminal text
  • Easy to use - just import and call
  • Lightweight - no external dependencies
  • Customizable - adjust speed and behavior
  • Cross-platform - works on Windows, macOS, and Linux

Installation 📦

pip install smooth-text-animation

Quick Start 🚀

from smooth_text_animation import animated_line, wave_text, blinking_text

# Typing effect
animated_line("Hello, World!", delay=0.1)

# Loading effect
wave_text("Loading", delay=0.3)

# Blinking warning
blinking_text("Warning!", repeat=5, delay=0.5)

Available Animations 🎭

1. Animated Line (Typing Effect)

from smooth_text_animation import animated_line
animated_line("This text appears character by character!", delay=0.05)

2. Dual Side Animation

from smooth_text_animation import animated_line_dual
animated_line_dual("Text appears from both sides!", delay=0.1)

3. Fade In Effect

from smooth_text_animation import fade_in_text
fade_in_text("This text fades in gradually!", delay=0.2)

4. Marquee Text (Scrolling)

from smooth_text_animation import marquee_text
marquee_text("This text scrolls across the screen!", width=30, delay=0.1)

5. Wave Loading

from smooth_text_animation import wave_text
wave_text("Loading", delay=0.3, repeat=3)

6. Blinking Text

from smooth_text_animation import blinking_text
blinking_text("ALERT!", repeat=5, delay=0.3)

7. Random Fill

from smooth_text_animation import random_fill
random_fill("Characters appear randomly!", delay=0.1)

8. Reverse Text

from smooth_text_animation import reverse_text
reverse_text("Text appears from right to left!", delay=0.2)

9. Rotate Loading

from smooth_text_animation import rotate_text
rotate_text("Processing", delay=0.2, cycles=10)

10. Combined Animation

from smooth_text_animation import combined_animation_simultaneous
combined_animation_simultaneous("Fade in and out!", delay=0.1)

Parameters 🎛️

Most functions accept these common parameters:

  • text (str): The text to animate
  • delay (float): Delay between animation steps in seconds
  • repeat (int): Number of times to repeat the animation (for some effects)

Examples 💡

Progress Indicator

from smooth_text_animation import wave_text
import time

for i in range(1, 6):
    wave_text(f"Processing step {i}/5", delay=0.2, repeat=2)
    time.sleep(1)

Alert System

from smooth_text_animation import blinking_text

blinking_text("⚠️ System Alert!", repeat=3, delay=0.5)

Welcome Message

from smooth_text_animation import animated_line_dual, fade_in_text

animated_line_dual("=== Welcome to My App ===", delay=0.05)
fade_in_text("Loading your dashboard...", delay=0.3)

Requirements 📋

  • Python 3.7+
  • No external dependencies!

License 📄

MIT License - feel free to use in your projects!

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

Author ✍️

traitimtrongvag - tbinh831@gmail.com

Links 🔗


Made with ❤️ for the Python community# smooth-text-animation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smooth_text_animation-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smooth_text_animation-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file smooth_text_animation-0.1.0.tar.gz.

File metadata

  • Download URL: smooth_text_animation-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for smooth_text_animation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7e6a93800002aee3ff606552aef3812ba9b9546d7115cad29d6731dadf7ca00b
MD5 1c363c73b101f609be3b627a771e00f8
BLAKE2b-256 4b0f6cbc0253f0f7af23b5f1b7558e99d6948a1f3340c82272bf82a43a26943d

See more details on using hashes here.

File details

Details for the file smooth_text_animation-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for smooth_text_animation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf352fa89c8b95126d513b5af35878cbae8093bca1285b938d8c98b76d5e8d6
MD5 9ad0c0d55da6d03d7aeccb36467b4caf
BLAKE2b-256 aebb2166906dc90178a7e057731bf711c5a99de53f87b0cc1a5b351f239f2c2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page