yannmoelle/css/typing.css

20 lines
339 B
CSS
Raw Normal View History

2023-05-29 14:14:28 +02:00
.container{
display: inline-block;
font-family: "arial";
font-size: 24px;
}
.typed {
overflow: hidden;
white-space: nowrap;
width: 0;
animation: typing;
animation-duration: 1.5s;
animation-timing-function: steps(30, end);
animation-fill-mode: forwards;
}
@keyframes typing {
from { width: 0 }
to { width: 100% }
}