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.1.tar.gz (10.9 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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: smooth_text_animation-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 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.1.tar.gz
Algorithm Hash digest
SHA256 0f917c76fa59a1269dd00784794b51c9dab0067d00915e4e3ea6f7d5a6dfcda6
MD5 1464c381bc81526d6e434bd6305f3d78
BLAKE2b-256 43963f33375a7050ce3899a1c333409f48df956774798c271b5608364afecc8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smooth_text_animation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90c42efbbc5a046040cf6c5116499b33cd93190e651c861d9846fa6e6cc46807
MD5 c7fd37d6593f029cfd25d4ced9194269
BLAKE2b-256 eab2ebbf787daa48355741c1f8c20c671eb79ff409d990e95261ed8622efe0d7

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