Color Changing Premium Loader using HTML | CSS

  



Source Code:


HTML : 

<!DOCTYPE html>
<html lang="en" dir="ltr">
   <head>
      <meta charset="utf-8">
      <title>Loading by Growcode</title>
      <link rel="stylesheet" href="style.css">
   </head>
   <body>
      <div class="center">
         <div class="circle"></div>
         <span>loading...</span>
      </div>
   </body>
</html>


CSS :

body {
    margin: 0;
    padding: 0;
    font-family: montserrat;
    background: black;
}

.center {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    animation: circle 2s linear infinite;
}

@keyframes circle {
    0% {
        transform: rotate(0deg);
        box-shadow: 1px 5px 2px #07afec;
    }

    45% {
        transform: rotate(180deg);
        box-shadow: 1px 5px 2px #caf108;
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 1px 5px 2px #dd00ff;
    }
}

.circle:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, .3);
}

span {
    color: #f1e7e7;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 200px;
    animation: text 3s ease-in-out infinite;
}

@keyframes text {
    50% {
        color: black;
    }
}

Comments

Popular Posts