Here is an idea transforming those labels’ css.
import streamlit as st
st.markdown("""
<style>
[data-testid="stThumbValue"] {
transform: rotate(-20deg) translate(50%, 10%);
}
</style>
""", unsafe_allow_html=True
)
"# Rotated `stThumbValue`"
" "
value = st.select_slider(
"select_option",
options=range(0, 100, 10),
value=[30, 40],
format_func=lambda x: f"YEAR 2020.{x} 🦠",
label_visibility='collapsed'
)
Also, check bullet #3 from this blog post to learn more about those tweaks.