jquery+css实现打字动画效果代码

代码语言:html

所属分类:动画

代码描述:jquery+css实现打字动画效果代码

代码标签: jquery 打字 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400");
        .text-js {
          opacity: 0;
        }
        
        .cursor {
          display: block;
          position: absolute;
          height: 100%;
          top: 0;
          right: -5px;
          width: 2px;
          /* Change colour of Cursor Here */
          background-color: white;
          z-index: 1;
          -webkit-animation: flash 0.5s none infinite alternate;
                  animation: flash 0.5s none infinite alternate;
        }
        
        @-webkit-keyframes flash {
          0% {
            opacity: 1;
          }
          100% {
            opacity: 0;
          }
        }
        
        @keyframes flash {
          0% {
            opacity: 1;
          }
          100% {
            opacity: 0;
          }
        }
        * {
          margin: 0;
          padding: 0;
          boz-sizing: border-box;
          font-family: "Open Sans", sans-serif;
        }
        
        body {
          background: linear-gradient(135deg, #00C4FF, #9D1BB2);
          height: 100vh;
          display: flex;
          align-items: center;
          justify-content: center;
        }
        
        .headline {
          margin: 20px;
          color: white;
          font-size: 32px;
          text-align: center;
        }
        .headline h1 {
          letter-spacing: 1.6px;
          font-weight: 300;
        }
        
        .twitterLink {
          position: absolute;
          bottom: 0;
          right: 0;
          margin: 10px 15px;
          z-index: 3;
        }
        .twitterLink svg {
          width: 25px;
        }
        
        .credit {
          position: fixed;
       .........完整代码请登录后点击上方下载按钮下载查看

网友评论0