Netbyzz

#A009
Animation

HTML :

<!-- CODE = #A009 -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>NETBYZZ A009</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3niQHzllfpJWl9Iss3ArAI7HSP4wA-vWMv-oN6X5ZUfZBiM4g9p92gO4mxJwExsrpAtRPLfb8WyFnOpjKWwSShfW0ohM0i3eoocCEF4bg0ppj0QcdOPy77suge-W_u-Dde5wIM4YbO0RQ39uXwpRB5H8yJBir9MWjJ_fO3bMhOdOYrGzBlWmI223Urew/s1000/Netbyzz4.png" alt="Netbyzz Logo" class="Netbyzz">
    <div>
      <strong><p>NETBYZZ</p></strong>
    </div>
  </body>
</html>

CSS :

.Netbyzz {
    margin-left: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 50%;
    /* Adjust the size of the logo */
    opacity: 2%;
}

body {
    background-color: #212121;
}

p {
    color: white;
    text-align: center;
    font-size: x-large;
}

div {
    /* animation properties */
    animation-name: my-animation;
    animation-duration: 2s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    /* other properties */
    width: 300px;
    height: 100px;
    border-radius: 10px;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

@keyframes my-animation {
    from {
        background-color: rgb(255, 82, 82);
        width: 300px;
        top: 100px;
    }

    to {
        background-color: rgb(27, 27, 111);
        width: 50px;
        top: 200px;
    }
}

Source Code