【发布时间】:2021-04-11 13:45:25
【问题描述】:
我已经应用了“无限”的迭代来使代码永远重复,但是没有延迟,如何在每次重复之间添加延迟?
.type {
width: max-content;
}
.type h1{
animation: typing 3s steps(31) infinite;
animation-delay: 2s;
overflow: hidden;
white-space: nowrap;
border-right: 2px solid black;
}
@keyframes typing {
0%{
width: 0%;
}
100%{
width: 100%;
}
}
<div class="type">
<h1>Hobbies, Goals, and Aspirations</h1>
</div>
【问题讨论】:
标签: html css animation css-animations