Add screen transition animations for polished UX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user