Module animations
Source - AnimatedSpinner
- Frame-based spinner with multiple styles
- Animation
- Tracks a single animation’s progress
- PulsingIndicator
- Manages a pulsing indicator (like a thinking/loading state)
- TokenStream
- Token streaming state for character-by-character rendering
- ViewTransition
- Manages view transition animations
- TransitionDirection
- animate_size
- Animate panel width/height with smooth easing
- breathe_opacity
- Generate a slow breathing effect (slower than pulse)
- calc_progress
- Calculate progress from elapsed time and duration
- ease_value
- Ease a value from start to end using a given progress (0.0 to 1.0)
Uses ease-in-out for smooth acceleration and deceleration
- lerp
- Reusable animation utility functions for smooth TUI effects
Implements “Claude Code feel” - subtle, smooth, non-flashy animations
Linear interpolation between two values
- lerp_color
- Interpolate between two RGB colors
- pulse_color
- Create a pulsing color effect between two colors
- pulse_opacity
- Generate a pulsing opacity value (0.3 to 1.0) based on time
Creates a breathing effect perfect for “thinking” indicators
- pulse_value
- Generate a pulsing value between min and max
- slide_panel
- Animate a panel sliding from one position to another