Skip to content

Commit

Permalink
feat(spinner): periods of ellipsis
Browse files Browse the repository at this point in the history
Handy for animating the three periods after a string, i.e. "Loading..."
  • Loading branch information
meowgorithm committed May 5, 2023
1 parent afb975b commit e9dfea9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ var (
Frames: []string{"☱", "☲", "☴", "☲"},
FPS: time.Second / 3, //nolint:gomnd
}
Ellipsis = Spinner{
Frames: []string{"", ".", "..", "..."},
FPS: time.Second / 3, //nolint:gomnd
}
)

// Model contains the state for the spinner. Use New to create new models
Expand Down

0 comments on commit e9dfea9

Please sign in to comment.