* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    height: 100vh;
    overflow: hidden;
}

.container {
    position: relative;
    width: 300px;
    height: 300px;
}

.container span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(calc(36deg * var(--i)));
}

.container span::before {
    content: '';
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid skyblue;
    box-shadow: 0 0 20px skyblue,
    -30px -30px 0 skyblue,
    -30px -30px 20px skyblue,
    30px 30px 0 skyblue,
    30px 30px 20px skyblue,
    30px -30px 0 skyblue,
    30px -30px 20px skyblue,
    -30px 30px 0 skyblue,
    -30px 30px 20px skyblue;
    animation: animate 5s linear infinite;
    animation-delay: calc(-0.25s * var(--i));
    transform-origin: 20px;
    transition: 2s;
}

.container:hover span::before{
    box-shadow: 0 0 20px skyblue,
    -200px -200px 0 skyblue,
    -200px -200px 20px skyblue,
    200px 200px 0 skyblue,
    200px 200px 20px skyblue,
    200px -200px 0 skyblue,
    200px -200px 20px skyblue,
    -200px 200px 0 skyblue,
    -200px 200px 20px skyblue;
    transform-origin: 250px;
}

@keyframes animate{
    0%{
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
        filter: hue-rotate(100deg);
    }
}