Hi everyone,
i am looking for a way to scroll through my application. From my understanding you need to use markdown with javascript.
I have this function that I thought would do the job def auto_scroll_down(amount_px: int): scroll_script = f""" <script> function scrollDown() {{ window.scrollBy({{ top: {amount_px}, left: 0, behavior: 'smooth' }}); }} scrollDown(); </script> """ st.markdown(scroll_script, unsafe_allow_html=True)
but for some reason the nothing happens when i call this function. Can someone help maybe?
Thanks in advance