Spaces:
Sleeping
Sleeping
File size: 937 Bytes
b4ae210 4d18729 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
import streamlit as st
from streamlit_extras.let_it_rain import rain
# Заголовок приложения
st.image("main.gif", width=1500)
# HTML и CSS для анимированного разноцветного текста
html_code = """
<style>
@keyframes rainbow {
0% { color: red; }
14% { color: orange; }
28% { color: yellow; }
42% { color: green; }
57% { color: blue; }
71% { color: indigo; }
85% { color: violet; }
100% { color: red; }
}
.rainbow-text {
font-size: 3em;
font-weight: bold;
text-align: center;
animation: rainbow 5s infinite;
}
</style>
<div class="rainbow-text">Сегодня ты узнаешь все</div>
"""
# Отображение HTML в Streamlit
st.markdown(html_code, unsafe_allow_html=True)
def eye():
rain(
emoji="👁",
font_size=100,
falling_speed=6,
animation_length="infinite",
)
eye() |