Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamlit-marquee

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-marquee

a streamlit marquee component

  • 0.0.7
  • PyPI
  • Socket score

Maintainers
1

streamlit-marquee.gif

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc