Hi All, Iβm using custom css to make the sidebar transparent, however, when changing pages in a mutlipage app, the color glitches for a moment showing the original color before making the background transparent. Iβm wondering if there is an easy way to fix this. Below is the code snippet and gif sample. Thanks
Based on the code snippet you provided, it appears you want to set the background of the sidebar to be transparent. However, there are some issues in your code:
There are extra double quotes in your sidebar_bg variable assignment. These should be removed.
The CSS selector [data-testid="stSidebar"] should be enclosed in curly braces {} for proper CSS syntax.
The Streamlit st.markdown function is used to render Markdown text, so the CSS code should be enclosed within triple backticks (```) to indicate a code block.