ceuk / ceuk/spotui

Auto-scroll truncated text

Open
#23 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
Python
Stars
576
Forks
20
PR merge metrics
No merged PRs in 30d

Description

When text is truncated it should automatically scroll left and right on an interval.

E.g. given the text "Never gonna give you up - Rick Astley"

You would move the truncation offset about 1 character every 500ms until the end is reached (at which point it should reverse).

There should also be a short delay (2 seconds or so) when the truncation offset reaches 0 again.

e.g. (the bar represents the truncation)
```
Never gonna give you up - Rick Astley
| ---------------- |
```
rendered: `Never gonna give...`

**~500ms later:**
```
Never gonna give you up - Rick Astley
| ---------------- |
```
rendered: `ever gonna give ...`

**~500ms later:**
```
Never gonna give you up - Rick Astley
| ---------------- |
```
rendered: `ver gonna give y...`

... etc

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.