Windows Loader Animation using HTML & CSS

Windows Loader Animation using HTML & CSS

Hello developers, today in this blog, you'll learn to create a Windows Loader Animation 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 (Windows Loader Animation) on the webpage, some dots rotate continuously, which is clockwise infinitely. While the loader is rotating after a few seconds, these dots are disappeared and again these dots appear. The CSS @keyframe property is used to rotate the loader.

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

Windows Loader Animation [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>Windows Loader Animation || Learningrobo</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="content"> <div class="container"> <div class="wrapper"> <div class="loader"> <div class="dot"></div> </div> <div class="loader"> <div class="dot"></div> </div> <div class="loader"> <div class="dot"></div> </div> <div class="loader"> <div class="dot"></div> </div> <div class="loader"> <div class="dot"></div> </div> <div class="loader"> <div class="dot"></div> </div> </div> <div class="text"> Please wait </div> </div> <div class="credit">Made with <span style="color:tomato;font-size:20px;">❤</span> by <a href="https://www.learningrobo.com/">Learning Robo</a></div> </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.


         @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: #12192c;
}
.container{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.wrapper{
  position: absolute;
  top: -35px;
  transform: scale(1.5);
}
.loader{
  height: 25px;
 width: 1px;
 position: absolute;
 animation: rotate 3.5s linear infinite;
}
.loader .dot{
  top: 30px;
 height: 7px;
 width: 7px;
 background: #E44D26;
 border-radius: 50%;
 position: relative;
}
.text{
  position: absolute;
  bottom: -85px;
  font-size: 25px;
  font-weight: 400;
  font-family: 'Poppins',sans-serif;
  color: #E44D26;
}
@keyframes rotate {
  30%{
    transform: rotate(220deg);
  }
  40%{
  transform: rotate(450deg);
    opacity: 1;
 }
 75%{
  transform: rotate(720deg);
  opacity: 1;
 }
 76%{
  opacity: 0;
 }
 100%{
  opacity: 0;
  transform: rotate(0deg);
 }
}
.loader:nth-child(1){
  animation-delay: 0.15s;
}
.loader:nth-child(2){
  animation-delay: 0.3s;
}
.loader:nth-child(3){
  animation-delay: 0.45s;
}
.loader:nth-child(4){
  animation-delay: 0.6s;
}
.loader:nth-child(5){
  animation-delay: 0.75s;
}
.loader:nth-child(6){
  animation-delay: 0.9s;
}
.credit a{
  text-decoration: none;
  font-weight: 800;
  color: #E44D26;
  }
  .credit {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 210px;
    color: #fff;
    text-align: center;
  }
We hope you would like this Windows Loader Animation using HTML & CSS.

Thank you for reading our blog. If you face any problem creating this Windows Loader Animation 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

إرسال تعليق

Thank you
Learning robo team

Post a Comment (0)

أحدث أقدم
Learning Robo says...
code copied
Welcome