JSFiddle - React, Tailwind, and code Playground

by c_vilander

HTML

Loading<span class="one">.</span><span class="two">.</span><span class="three">.</span>


<!-- Made a small demo of an animated ellipsis using CSS3 animations -->

CSS

body {
    padding: 25px;
    font-family: sans-serif;
    font-weight: 100;
    font-size: 26px;
    color: #ffffff;
    background-color: #393939;        
}

.one {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.0s;
    
    -moz-animation: dot 1.3s infinite;
    -moz-animation-delay:  0.0s;

    -o-animation: dot 1.3s infinite;
    -o-animation-delay: 0.0s;    
}

.two {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.2s;
    
    -moz-animation: dot 1.3s infinite;
    -moz-animation-delay:  0.2s;

    -o-animation: dot 1.3s infinite;
    -o-animation-delay: 0.2s; 
}

.three {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.3s;
    
    -moz-animation: dot 1.3s infinite;
    -moz-animation-delay:  0.3s;

    -o-animation: dot 1.3s infinite;
    -o-animation-delay: 0.3s; 
}

@-webkit-keyframes dot {
      0% { opacity: 0; }
     50% { opacity: 0; }
    100% { opacity: 1; }
}

@-moz-keyframes dot {
      0% { opacity: 0; }
     50% { opacity: 0; }
    100% { opacity: 1; }
}

@-o-keyframes dot {
      0% { opacity: 0; }
     50% { opacity: 0; }
    100% { opacity: 1; }
}