In the past i was always searching a good image spinner so i can use it on my sites.
But this actually gets you a new request from server every time you make a call. So what can you do? Use a CSS cool looking spinner.
The HTML code for this spinner is this:
<div class="spinnerloading"></div>
The CSS code for this is:
@keyframes spinnerloading-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .spinnerloading { display: inline-block; border: 20px solid rgba(0, 0, 0, 0.1); /// you can change the border width border-left-color: #7983ff; // you can change the color border-radius: 50%; width: 100px; // you can change the size height: 100px; // you can change the size animation:spinnerloading-spin 1.2s linear infinite; }
If you wish to change the width and height please use the same numer… if not you will get a very weird effect