c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Css

Ring rotator to indicate content loading-CSS examples

| | Css

Create a ring spinner that can be used to indicate content loading.

HTML CODE:

<div class="donut">
</div>

CSS CODE:

@keyframes donut-spin {
    0% {
        transform: rotate(0deg);
    }
     100% {
        transform: rotate(360deg);
    }
}
 .donut {
    display: inline-block;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #7983ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: donut-spin 1.2s linear infinite;
}

Description

Use translucent border For the entire element, except for the side that is used as the ring loading indicator. Use a animation rotation element.