Код: Выделить всё
test
body {
background-color: rgb(22, 22, 22);
}
.text {
color: rgb(255, 211, 211);
font-size: 36px;
text-align: center;
font-family: Arial, sans-serif;
}
.desc {
color: azure;
text-align: center;
font-size: 20px;
}
.text2 {
color: honeydew;
text-align: center;
font-size: 20px;
}
.titolo {
color: white;
font-size: 25px;
text-align: center;
}
.text3 {
color: azure;
text-align: center;
font-size: 20px;
}
@keyframes Fadeout {
from {
transform: translateY(-100px);
color: transparent;
animation-delay: 0.5s;
}
to {
transform: translateY(0);
}
}
.box {
position: absolute;
width: 50%;
height: 150%;
color: rgb(157, 60, 60);
top: 50px;
left: 50%;
}
.box:hover {
animation-name: Fadeout;
animation-duration: 1s;
animation-delay: 1.5s;
animation-iteration-count: 1;
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -animation
Мобильная версия