Animate an ellipsis with CSS animations - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Text

Description

Animate an ellipsis with CSS animations

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">

.ellipsis {<!--from   w  w  w  .  j a va  2 s .co  m-->
   overflow: hidden;
   display: inline-block;
   vertical-align: bottom;
   -webkit-animation: ellipsis 2s infinite;
   -moz-animation: ellipsis 2s infinite;
}
@-webkit-keyframes ellipsis {
   from {
      width: 2px;
   }
   to {
      width: 12px;
   }
}
@-moz-keyframes ellipsis {
   from {
      width: 2px;
   }
   to {
      width: 12px;
   }
}


      </style> 
 </head> 
 <body>
   Loading 
  <span class="ellipsis">...</span>  
 </body>
</html>

Related Tutorials