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
Close
Hashes for streamlit_marquee-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58042837fc43d37503d0a08dce02f1bc1c6567414333771099897aa7bed395ac |
|
MD5 | 66d59daa5d412ede5dcc7f0e4ea19048 |
|
BLAKE2b-256 | d9b2f8ab12166c52836b0d949c8bb59faad13d77ad89fd9ef70502f04cd633ef |