<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <title></title> <style type="text/css"> span { text-rendering: optimizeLegibility; } .spinner.bounce{ display: block; margin: auto; width: 65px; text-align: center; height: 18px; } .spinner.bounce .one { -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .spinner.bounce .two { -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } .spinner.bounce>span { width: 18px; height: 18px; background-color: #ccc; border-radius: 100%; display: inline-block; -webkit-animation: bouncedelay .8s infinite ease-in-out; animation: bouncedelay .8s infinite ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; } @-webkit-keyframes bouncedelay { 0%,80%,to { -webkit-transform: scale(0.8) } 40% { -webkit-transform: scale(1) } } @keyframes bouncedelay { 0%,80%,to { transform: scale(0.8); -webkit-transform: scale(0.8) } 40% { transform: scale(1); -webkit-transform: scale(1) } } </style> </head> <body> <span class="spinner bounce"> <span class="one"></span> <span class="two"></span> <span class="three"></span> </span> </body> </html>