import streamlit as st
st.markdown(
"""
<svg height="100" width="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>"""
, unsafe_allow_html=True)
Animated SVG uses JavaScript if I’m not mistaken, but this might be implementation-specific (I don’t know). You could try to copy the SVG example into my code above, or possibly use components.html from the Streamlit Components functionality to display: