js+css实现文字打字输出动画效果代码

代码语言:html

所属分类:动画

代码描述:js+css实现文字打字输出动画效果代码

代码标签: js css 文字 打字 输出 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
body{
  background:#aaa url(//repo.bfw.wiki/bfwrepo/image/6737097790d81.png) no-repeat center;
  background-size:cover;
  color:#333;
  min-height:100vh;
  &::-webkit-scrollbar {
  display: none;
}
}
#content {
      margin: 20px auto;
      width: 80%;
      font-family: monospace,serif;
      font-size: 16px;
      line-height: 1.5;
  p{
    text-align:justify;
    max-height:99em;
    transition:all 0.2s
  }
    }
    .typewriter {
      overflow: hidden;
      max-height: 1.5em;
      white-space: nowrap;
      border-right: .5em solid #333;
      animation: typing 5s steps(100, end), blink 0.1s infinite alternate;
    }
    @keyframes typing {
      from { width: 0; }
      to { width: 100%; }
    }
    @keyframes blink {
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0