a streamlit marquee component
Project description
what is it
a marquee component for streamlit
how to use
first, install via pip online
pip install streamlit-marquee
or download the wheel file and install offline
pip install {{the downloaded wheel file path in your pc}}
or just download the source-code.
then, there are two demos below.
demo 1 (recommend)
from streamlit_marquee import streamlit_marquee
streamlit_marquee(**{
# the marquee container background color
'background': "#ff0000",
# the marquee text size
'font-size': '12px',
# the marquee text color
"color": "#ffffff",
# the marquee text content
'content': 'here is custom marquee component~',
# the marquee container width
'width': '600px',
# the marquee container line height
'lineHeight': "35px",
# the marquee duration
'animationDuration': '5s',
})
demo 2
from streamlit_marquee import streamlit_marquee
streamlit_marquee(content='here is custom marquee component~')
how it realizes
since the html tag <marquee> has been declared as deprecated.
as an alternative, use css animation to realize.
supported attributes
- background
- fontSize
- color
- content
- width
- lineHeight
- animationDuration
you can also download the source code and change to support more attributes such as transition-timing-function. any question, please open issues.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_marquee-0.0.7.tar.gz.
File metadata
- Download URL: streamlit_marquee-0.0.7.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04fd23ac80f19578a000d0059a609a013677ce739190badba6906ed80b51d29b
|
|
| MD5 |
c1c6287ce922e5f198c37001b3f4d88a
|
|
| BLAKE2b-256 |
3b2b7a7337921e7d5af943d1c8915a8c928f1db24fc14ef39303900262a0fb01
|
File details
Details for the file streamlit_marquee-0.0.7-py3-none-any.whl.
File metadata
- Download URL: streamlit_marquee-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58042837fc43d37503d0a08dce02f1bc1c6567414333771099897aa7bed395ac
|
|
| MD5 |
66d59daa5d412ede5dcc7f0e4ea19048
|
|
| BLAKE2b-256 |
d9b2f8ab12166c52836b0d949c8bb59faad13d77ad89fd9ef70502f04cd633ef
|