<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title><style id="jsbin-css">@keyframes typing {from { width: 0 }}/* 光标 */@keyframes caret {50% { border-right-color: transparent; }}h1 {font: bold 200% Consolas, Monaco, monospace;width: 8.25em;/* width: 15ch; */white-space: nowrap;overflow: hidden; border-right: .05em solid;animation: typing 8s steps(155), caret 1s steps(1) infinite; }</style></head><body> <h1 class="pic">CSS is awesome!</div></body></html>
评论