类型:组件 · 分类:加载动画 · 收录:2026-09-19 · 源码:会员可见
[hidecontent type="vip1"]<div class="animation">Text writing!</div>
<style>
/* From Uiverse.io by JkHuger - Tags: animation, text, writing */
@keyframes typing {
from {
width: 0;
}
}
@keyframes blink-caret {
50% {
border-color: transparent;
}
}
/* When you change the amount of characters in the h1, you have to change
the with: 14ch and steps(14, end), if there is 14 characters, put 14,
if there is 20 put 20 */
.animation {
font: bold 200% Consolas, Monaco, monospace;
border-right: .1em solid black;
width: 13.20ch;
margin: 2em 2em;
white-space: nowrap;
overflow: hidden;
-webkit-animation: typing 5s steps(13, end),
blink-caret .5s step-end infinite alternate;
}
</style>
[/hidecontent]