How to make animation without buttons

Hi
I am using streamlit and I have a simple signal plot using plotly, Is there any way to make animation without the updatemenu buttons and using st.button from streamlit