Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML>
<html>
<head>
    <style>
        * {
            margin: 0;
        }
body
{
    background-color: #22b770;
}
        .box {
            width: 100px;
            height: 100px;
            background-color: #22b770;
            border-radius: 100%;
            position: relative;
            animation: rotate 1.5s infinite linear;
            /* animation-direction: alternate; */
            overflow: hidden;
            box-sizing: border-box;
            
        }
        .cover {
            width: 50px;
            height: 50px;
            background-color: #22b770;
            display: inline-block;
            position: absolute;
            left: 0px;
            top: 0px;
            transform-origin: 50px 50px;
            animation: cover 3s infinite linear;
            /* animation-direction: alternate; */
            transform: rotate(90deg);
            box-sizing: border-box;
            overflow: hidden;
        }
        .cover-center {
            width: 90px;
            height: 90px;
            position: absolute;
            left: 5px;
            top: 5px;
            border-radius: 50%;
            box-sizing: border-box;
            background-color: #22b770;
            overflow: hidden;
        }
        .loading {
            width: 50px;
            height: 50px;
            background-color: black;
            display: inline-block;
            position: absolute;
            left: 50px;
            top: 0px;
            
            overflow: hidden;
            box-sizing: border-box;
        }
        @keyframes rotate {
            from {
                transform: rotate(0deg)
            }
            to {
                transform: rotate(360deg)
            }
        }
        @keyframes cover {
            0% {
                transform: rotate(0deg)
            }
            50% {
                transform: rotate(90deg)
            }
            100% {
                transform: rotate(0deg)
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="loading">
        </div>
        <div class="cover">
                
                        </div>
        <div class="cover-center"></div>
    </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers