Create auto typing effect with keyframes inside a table cell using animation - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Create auto typing effect with keyframes inside a table cell using animation

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.typing {<!--from w  w  w.java2 s  .  c  o m-->
   text-align:left;
   white-space:nowrap;
   overflow:hidden;
   padding:7px;
   opacity:0;
}

.typewriter-ani {
   animation:typewriter;
   animation-duration:3s;
   animation-timing-function:steps(9);
   animation-direction:normal;
   animation-fill-mode:forwards;
   display:inline-block;
}

@keyframes typewriter  {
   0% {
      width:0;
      opacity:0;
   }
   
   1% {
      opacity:2;
      color:Chartreuse;
   }
   
   100% {
      width:61px;
      opacity:2;
      color:yellow;
   }

}
</style> 
 </head> 
 <body> 
  <p class="typing typewriter-ani">Lorem ip</p> 
  <table border="1"> 
   <tbody> 
    <tr> 
     <td class="typing typewriter-ani">Lorem ip</td> 
     <td class="typing typewriter-ani">Lorem ip</td> 
    </tr> 
    <tr> 
     <td class="typing typewriter-ani">Lorem ip</td> 
     <td class="typing typewriter-ani">Lorem ip</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials