<h1 class="typing title-h">招募优秀艺术家</h1>
css样式
.title-h{
font-size: 1.8rem;
padding-top: 6%;
margin-bottom: 5%;
font-weight: normal;
letter-spacing: .3rem;
/*padding-left: 29.2%;*/
-webkit-animation: type 2s steps(50, end) forwards;
animation: type 2s steps(50, end) forwards;
}
.typing{
text-align: center;
color: black;
width:100%;
white-space:nowrap;
overflow:hidden;
}
@-webkit-keyframes type{
from { width: 0;}
}
@keyframes type{
from { width: 0;}
}