Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

streamlit-lottie

> 前端框架
Open source

Streamlit component to render Lottie animations

197 stars0 likes4 views
WebsiteGitHub

About

Streamlit component to render Lottie animations

Streamlit Lottie


This project is unmaintained.

Though you could get a similar feature by embedding the Lottie HTML code into st.html.


Integrate Lottie animations inside your Streamlit app!

Install

bash
pip install streamlit-lottie

Usage

  • Basic usage
python
import streamlit as st
from streamlit_lottie import st_lottie

with st.echo():
    st_lottie("https://assets5.lottiefiles.com/packages/lf20_V9t630.json")
  • Basic usage (with monkey patched st.lottie function)
python
import streamlit as st
import streamlit_lottie

with st.echo():
    st.lottie("https://assets5.lottiefiles.com/packages/lf20_V9t630.json")
  • Context manager usage, using with notation
python
import time

import streamlit as st
from streamlit_lottie import st_lottie

with st_lottie("https://assets5.lottiefiles.com/packages/lf20_V9t630.json"):
    time.sleep(5)
  • Download lottie manually example
…

Development

Install

  • JS side
bash
cd frontend
npm install
  • Python side
bash
conda create -n streamlit-lottie python=3.7
conda activate streamlit-lottie
pip install -e .

Run

Both webpack dev server and Streamlit need to run for development mode.

  • JS side
bash
cd frontend
npm run start
  • Python side
bash
streamlit run app.py

References

  • Lottie-web (Official)
  • react-lottie (chenqingspring)
  • lottie-react-web (felippenardi)
  • lottie-react (gamote)
  • lottie-react (LottieFiles)
  • react-lottie-player (mifi)
  • lottie-interactivity

Support me

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonlottiepythonreactstreamlit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架