百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

streamlit-lottie

> 前端框架
开源

精简组件以制作Lottie动画

197 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

精简组件以制作Lottie动画

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonlottiepythonreactstreamlit

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

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