animation.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>DEVELOPERS CLUB</title>
  <link rel="stylesheet" type="text/css" href="animation.css" />
</head>
<body>
<div class="container">
  <div class="box">
      <div class="cube"></div>
  </div>
</div>
</body>
</html>

анимация.css

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: black;
    overflow: hidden;
}
.container{
    position:relative;
    width: 100%;
    transform: rotate(-35deg);
}
.container .box{
    position:relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    -webkit-box-reflect: below 1px linear-gradient(transparent,#131626);
    animation: animateS 1.5s ease-in-out infinite;
}
@keyframes animateS {
    0%{
        transform: translateX(0px);
    }
    100% {
        transform: translateX(-200px);
    }
}
.container .box .cube{
    position:relative;
    width: 200px;
    height: 200px;
    background: #59f5f3;
    box-shadow: 0 0 5px #59f5f3,
    0 0 25px #59f5f3,
    0 0 50px #59f5f3,
    0 0 100px #59f5f3,
    0 0 200px #59f5f3,
    0 0 300px #59f5f3;
    transform-origin: bottom right;
    animation: animate 1.5s ease-in-out infinite;
}
@keyframes animate {
    0%{
        transform: rotate(0deg);
    }
    60%{
        transform: rotate(90deg);
    }
    65%{
        transform: rotate(85deg);
    }
    70%{
        transform: rotate(90deg);
    }
    75%{
        transform: rotate(88deg);
    }
    80%,100%{
        transform: rotate(90deg);
    }
}

Запускайте программу в этом онлайн-компиляторе (https://codepen.io/pen/) и добавляйте что-то свое и делитесь с нами своими впечатлениями

Так выглядит онлайн-компилятор.

Подпишитесь на нас в Twitter и заходите в Discord