Add screen transition animations for polished UX

This commit is contained in:
Calmcacil
2026-01-12 23:40:01 +01:00
parent b7ddd54cf6
commit 1187ae0046
2 changed files with 283 additions and 40 deletions

View File

@@ -4,6 +4,16 @@ import (
tea "github.com/charmbracelet/bubbletea"
)
// TransitionType defines the type of transition animation
type TransitionType int
const (
TransitionNone TransitionType = iota
TransitionFade
TransitionSlideLeft
TransitionSlideRight
)
// Screen represents a UI screen (list, add, detail, etc.)
type Screen interface {
Init() tea.Cmd