Thành viên:Đức Anh/Nháp 58

    Tủ sách mở Wikibooks
    .typewriter {  
    	padding: 6px;
    	padding-left: 10px;
    	border: 1px solid #a2a9b1;
    box-shadow: inset 0px 1px 6px 0px rgba(162,169,177,1);
    	width: 90%;
    	float: left;
    }
    .typewriter h1 {
      overflow: hidden; /* Ensures the content is not revealed until the animation */
      border-right: .15em solid #2a4b8d; /* The typwriter cursor */
      white-space: nowrap; /* Keeps the content on a single line */
      margin: 0 auto; /* Gives that scrolling effect as the typing happens */
      animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
      border-bottom: 0;
      font-size: 26px;
    }
    
    /* The typing effect */
    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }
    
    /* The typewriter cursor effect */
    @keyframes blink-caret {
      from, to { border-color: transparent }
      50% { border-color: #2a4b8d; }
    }