Google Loader Using HTML & CSS

Hello wizards, I hope you are doing great. Today in this blog you’ll learn how to create the "Google Loader" project using HTML & CSS.

Preview 

In the above video, you’ve seen the preview of the "Google Loader" project and I hope you are now able to create this type of project. If not, I have provided all the HTML & CSS code below.

Google Loader [Source Code] 

To get the following HTML & CSS code for the Google Loader project. You need to create two files one is an HTML file, and the second one is a CSS file. After completing these two files, you can copy-paste the codes on your document. 

Remember, you’ve to create a file with a .html extension for HTML code and a .css extension for CSS code.

You can also download all source code files from the given download button.

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Google Loader</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <h1>Google Loader</h1>
    <div class="container">
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
        <div class="dot"></div>
    </div>
</body>

</html>
CSS
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

h1 {
  margin-bottom: 50px;
  font-weight: 600;
  font-size: 40px;
}

.container {
  display: flex;
  column-gap: 20px;
}

.container .dot {
  width: 40px;
  height: 40px;
  background-color: black;
  border-radius: 50%;
  animation: loading 1s infinite alternate;
}

.container .dot:nth-child(1) {
  background-color: #4285f4;
  animation-delay: -0.25s;
}

.container .dot:nth-child(2) {
  background-color: #ea4335;
  animation-delay: -0.5s;
}

.container .dot:nth-child(3) {
  background-color: #fbbc05;
  animation-delay: -0.75s;
}

.container .dot:nth-child(4) {
  background-color: #34a853;
  animation-delay: -1s;
}

@keyframes loading {
  0% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(5px);
  }
}
You have to wait 15 seconds.

Generating Download Link...

Post a Comment

Previous Post Next Post