Color Changing Shiny Loader using HTML & CSS

Color Changing Shiny Loader using HTML & CSS

Hello developers, today in this blog, you'll learn to create a Color Changing Shiny Loader using HTML & CSS.

Loaders are also called preloaders, are what you see on the screen while the page's content is still loading. Loaders are simple and complex animations that are used to keep your visitors and content viewers entertained while the page's content is still loading.

In this blog (Color Changing Shiny Loader) on the webpage, a shiny loader, which rotates 360deg clockwise. While loading, its color changes continuously with the help of the degrees. At the center of the shiny loader, the "Loading..." text smoothly fades out and fades in when the loader is rotating.

The source code of this Color Changing Shiny Loader is given below, if you want the source code of this program, you can copy it. You can use this Color Changing Shiny Loader with your creativity and can take this project to the next level.

Color Changing Shiny Loader [Source Code]

To make this website, you would like to make two files: an HTML file & a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Color Changing Shiny Loader || Learningrobo</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="center"> <div class="ring"></div> <span>loading...</span> </div> <div class="credit">Made with <i style="color:#E44D26">❤</1> by <a href="https://www.learningrobo.com/">Learning Robo</a></div> </body> </html>
CSS provides style to an HTML page. To make the page attractive, create a CSS file with the name style.css, and remember that you have to make a file with a .css extension.


body{
  margin: 0;
  padding: 0;
  font-family: montserrat;
  background: #12192c;
  overflow: hidden;
}
.center{
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.ring{
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  animation: ring 3s linear infinite;
}
@keyframes ring {
  0%{
    transform: rotate(0deg);
    box-shadow: 1px 5px 2px #21D4FD;
  }
  50%{
    transform: rotate(180deg);
    box-shadow: 1px 5px 2px #E44D26;
  }
  100%{
    transform: rotate(360deg);
    box-shadow: 1px 5px 2px  #00C9A7;
  }
}
.ring: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:  #5eb2c7;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 200px;
  animation: text 3s ease-in-out infinite;
}
@keyframes text {
  50%{
    color: black;
  }
}
.credit{
    text-align: center;
    color: #fff;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.credit a{
    text-decoration: none;
    color: #E44D26;
    font-weight: bold;
} 
We hope you would like this Color Changing Shiny Loader using HTML & CSS.

Thank you for reading our blog. If you face any problem creating this Color Changing Shiny Loader using HTML & CSS, then contact us or comment us. We'll try to provide the solution to your problem as soon as possible.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome
OnlineEditor
HTMLTools