D0r11s (обсуждение | вклад) м (test) |
D0r11s (обсуждение | вклад) м (test) |
||
| Строка 26: | Строка 26: | ||
background-color: #ffb90f; | background-color: #ffb90f; | ||
transition: width 1s cubic-bezier(0, 0, 1, 1) 50ms; | transition: width 1s cubic-bezier(0, 0, 1, 1) 50ms; | ||
text-align: center; | |||
} | } | ||
| Строка 33: | Строка 34: | ||
animation: shake 0.5s; | animation: shake 0.5s; | ||
animation-iteration-count: infinite; | animation-iteration-count: infinite; | ||
text-align: center; | |||
} | } | ||
Версия от 21:06, 2 августа 2024
@keyframes animationOne {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes text1 {
0% {
color: #000;
margin-bottom: -40px;
}
85% {
letter-spacing: 8px;
margin-bottom: -40px;
}
}
.block-animation {
width: 90px;
height: 50px;
background-color: #ffb90f;
transition: width 1s cubic-bezier(0, 0, 1, 1) 50ms;
text-align: center;
}
.block-animation:hover {
width: 590px;
background-color: red;
animation: shake 0.5s;
animation-iteration-count: infinite;
text-align: center;
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}